I’m trying to get setup to edit the OLA firmware, but having troubles. Here’s my setup:
- Arduino 1.8.13 (Windows Store 1.8.42)
- SparkFun Apollo boards 1.2.1 Installed.
- Trying to compile OLA_IMU_basic.ino.
- Board set to Sparkfun Aretmis Redboard (is this correct for OLA?)
Error is:
In file included from c:\users\ryan\onedrive - university of north carolina at chapel hill\documents\arduinodata\packages\sparkfun\tools\arm-none-eabi-gcc\8-2018-q4-major\arm-none-eabi\include\c++\8.2.1\cmath:41,
from c:\users\ryan\onedrive - university of north carolina at chapel hill\documents\arduinodata\packages\sparkfun\tools\arm-none-eabi-gcc\8-2018-q4-major\arm-none-eabi\include\c++\8.2.1\math.h:36,
from C:\Users\Ryan\OneDrive - University of North Carolina at Chapel Hill\Documents\ArduinoData\packages\SparkFun\hardware\apollo3\1.2.1/cores/arduino/ard_sup/Arduino.h:47,
from sketch\OpenLog_Artemis.ino.cpp:1:
c:\users\ryan\onedrive - university of north carolina at chapel hill\documents\arduinodata\packages\sparkfun\tools\arm-none-eabi-gcc\8-2018-q4-major\arm-none-eabi\include\c++\8.2.1\bits\c++config.h:508:10: fatal error: bits/os_defines.h: No such file or directory
#include <bits/os_defines.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board SparkFun RedBoard Artemis.
Previously it complained about a missing file bits/c++config.h, but I copied one into bits from elsewhere. I guess I’ll keep copying in files, but something seems amiss.
Update:
I copied in a os_defines.h that was missing, then cpu_defines.h.
It then was missing a library for the ICM-20948, so installed that. Now I’m stumped again with this error:
arm-none-eabi-gcc: error: N\AppData\Local\Temp\arduino_build_673898\core\core.a: No such file or directory
exit status 1
Error compiling for board SparkFun RedBoard Artemis ATP.
If I look in C:\Users\Ryan N\AppData\Local\Temp\arduino_build_673898\core\ there is a file called core.a there.
So I installed the Arduino software on my home PC. I can get the IMU example to compile. The BasicFileTest.ino failed until I installed SdFat library as I think I had an old version on my PC.
I tried compiling OpenLog_Artemis, and after installing a lot of libraries, it seems to work! I still ned to get this working on my office PC, but being able to compile at home is helpful.
If you look closely, it’s adding some extra double quotes in the path to core.a which is why it can’t find it. Seems like a problem handling paths with spaces in them?
Edit: Just want to add, that this works on my home PC, because my user name there doesn’t have a space in it.
I’m having some of the same issues when trying to compile the OLA firmware.
First I got a missing avr/pgmspace.h from include in zmodem_crc16.cpp file. No matter what I do, I can’t seem to add it. As I understand this is not included in the apollo3 core…??? How can I include it in the path for the compiler?
After much fiddeling I suddenly start to get “error compiling for SparkFun RedBoard Artemis ATP”. I’ve reinstalled the Arduino IDE and reinstalled the boards via board manager. No luck.
Thanks for the replies. After much searching and gnashing of teeth I found an old copy of the v2 core files. Uninstalling the Apollo boards in the IDE did not remove this, so when I (re)installed the 1.2.1 version of the boards, the v2 was still being used while compiling. I deleted the directory and the firmware compiled! I have no idea what was causing the compile to fail on the avr/pgmspace.h in the first place, but that error also magically disappeard.
Lesson learned: If you have ever installed v2 of the Apollo boards, you will manually have to delete them from C:\Users<username>\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3 before it will compile for 1.2.1
Thanks for letting us know - glad that’s now working for you.
v2 of Apollo3 is a BIG change - going over to Mbed. It’s a whole new compiler, so I’m not completely surprised that it doesn’t like pgmspace. We are going to upgrade OLA to v2 - but not just now. Apologies for any stress caused!