Programming with the Arduino IDE works fine on Windows, but I get the above error message (with a much longer filepath) on Linux. I guess it can’t find the compiler. The full error is:
fork/exec /home/user/.arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-g++: no such file or directory
Error compiling for board SparkFun RedBoard Artemis Nano.
I looked at the directory structure and I have everything down to 8-2018-q4-major, but where I should have a bin folder inside that, I just have the directories arm-none-eabi and lib. Any ideas? Thanks.
Update: I reinstalled the SparkFun boards from the board manager and I can compile, but I’m now getting this on the SVL bootloader:
Artemis SVL Bootloader
[
error receiving packet
{'len': 0, 'cmd': 0, 'data': 0, 'crc': 1, 'timeout': 1}
unknown error
Upload failed
[
error receiving packet
{'len': 0, 'cmd': 0, 'data': 0, 'crc': 1, 'timeout': 1}
unknown error
Upload failed
[
error receiving packet
{'len': 0, 'cmd': 0, 'data': 0, 'crc': 1, 'timeout': 1}
unknown error
Upload failed
and this from the Ambiq secure bootloader:
[11380] Failed to execute script ambiq_bin2board
Traceback (most recent call last):
File "ambiq_bin2board.py", line 24, in <module>
ModuleNotFoundError: No module named 'am_defines'
ModuleNotFoundError: No module named 'am_defines'
This doesn’t happen on Windows either, just Linux.
Use the SVL bootloader but try slower upload speeds such as 115200 then work up to find the highest working speed. I found 460800 reliable on my Ubuntu 18.04 LTS system.