"Error compiling for board"

Hi everyone,

I’m getting a very strange and quite vague error here that I’ve never seen before. When I attempt to either compile or upload a sketch (any sketch, even blink), the following happens:

The first time I upload or compile, the sketch is able to compile or successfully upload to the board as evidenced by my first uploading a blank sketch and then uploading blink.

The second time I press upload, I get the following error output from my console (verbose):

C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware -hardware C:\Users\h366217\AppData\Local\Arduino15\packages -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\tools-builder -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr -tools C:\Users\h366217\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\libraries -libraries C:\Users\h366217\Documents\Arduino\libraries -fqbn=SparkFun:apollo3:amap3redboard:svl_baud=921600,loader=sparkfun_svl -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\h366217\AppData\Local\Temp\arduino_build_398506 -warnings=none -build-cache C:\Users\h366217\AppData\Local\Temp\arduino_cache_270339 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -verbose C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\examples\01.Basics\Blink\Blink.ino
C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\arduino-builder -compile -logger=machine -hardware C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware -hardware C:\Users\h366217\AppData\Local\Arduino15\packages -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\tools-builder -tools C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\hardware\tools\avr -tools C:\Users\h366217\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\libraries -libraries C:\Users\h366217\Documents\Arduino\libraries -fqbn=SparkFun:apollo3:amap3redboard:svl_baud=921600,loader=sparkfun_svl -vid-pid=1A86_7523 -ide-version=10812 -build-path C:\Users\h366217\AppData\Local\Temp\arduino_build_398506 -warnings=none -build-cache C:\Users\h366217\AppData\Local\Temp\arduino_cache_270339 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -verbose C:\Users\h366217\Documents\arduino-1.8.12-windows\arduino-1.8.12\examples\01.Basics\Blink\Blink.ino

Using board 'amap3redboard' from platform in folder: C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.29
Using core 'arduino' from platform in folder: C:\Users\h366217\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.29
Detecting libraries used...
Error compiling for board SparkFun RedBoard Artemis.

If I then change, say, to a different COM port, or reduce the baud rate, I am again able to upload the first time but not on subsequent attempts in the same manner as above.

What I have attempted thus far:

Restarting my PC after reinstalling the Arduino IDE after deleting my Arduino15 folder in appdata\local

Using the portable version of the IDE.

Attempting the previous process with both a second Sparkfun Artemis Redboard, and also with a regular Arduino Uno. The results have been identical so far as I can tell.

I am running Arduino in the following environment:

Windows 10 x64 with 32 GB RAM

Arduino IDE version 1.8.12

Has anyone else ever encountered this error before and dealt with it successfully? At this point I am suspecting interference from some other program installed on my work PC.

Thanks for any and all assistance.

i am having the exact issue… its stupid a work around i have discovered is switching back and forth between uno and nano before you try to compile or even verify… as soon as i click them ill have an error and it can be right after it just compiled, trying to modify code has been hell i have deleted everything besides my sketches atleast 10 times to try to make sure no corrupt files remain and no matter what i still have this issue, my workaround works but its annoying, and it probably started back in march… so its the same time line as you… you ever figure anyting out with this ??

you seem to have a very old version of the Apollo3 library (1.0.29). The current version is 2.0.1. You need to install a new library for which you need to install a new board-definition file. Follow the steps on https://learn.sparkfun.com/tutorials/ar … troduction.

paulvha:
you seem to have a very old version of the Apollo3 library (1.0.29). The current version is 2.0.1. You need to install a new library for which you need to install a new board-definition file. Follow the steps on https://learn.sparkfun.com/tutorials/ar … troduction.

The latest is 2.0.2 posted over the weekend. In my 1.8.13 IDE all the Apollo3 boards “disappear” whenever a new library version is made available and I have to re-install / update (although the 2.0.1 library is still there). Not sure this is a 1.8.13 IDE issue or Apollo3 jason file.