Compilation issue in Arduino IDE using SparkFun Apollo3 Boards v 1.0.0, IDEv1.8.9

Attempted to compile the Blink example, tried Both the Files>Examples> Blink and the CoreTesting/example1_blink/example1_blink.ino

both Fail with

Compiling sketch…

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/tools/arm-none-eabi-gcc/8-2018-q4-major/bin/arm-none-eabi-g++ -DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3 -c -g -MMD -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -fdata-sections -Os -ffunction-sections -Wall -Wextra -std=gnu++11 -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_AM_AP3_SFE_BB_ARTEMIS -DARDUINO_ARCH_APOLLO3 -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/variants/SparkFun_BlackBoard_Artemis/config -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ard_supers -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/variants/SparkFun_BlackBoard_Artemis -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/am_sdk_ap3/mcu/apollo3 -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/am_sdk_ap3/mcu/apollo3/hal -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/am_sdk_ap3/mcu/apollo3/regs -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/am_sdk_ap3/utils -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/am_sdk_ap3/CMSIS/AmbiqMicro/Include -I/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/am_sdk_ap3/CMSIS/ARM/Include /var/folders/85/1kqycjv97s5c_3qrnqq7v2ww0000gn/T/arduino_build_956414/sketch/example1_blink.ino.cpp -o /var/folders/85/1kqycjv97s5c_3qrnqq7v2ww0000gn/T/arduino_build_956414/sketch/example1_blink.ino.cpp.o

In file included from /Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/Arduino.h:75,

from /var/folders/85/1kqycjv97s5c_3qrnqq7v2ww0000gn/T/arduino_build_956414/sketch/example1_blink.ino.cpp:1:

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_gpio.h: In function ‘bool ap3_gpio_is_valid(ap3_gpio_pad_t)’:

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_gpio.h:45:43: warning: comparison is always true due to limited range of data type [-Wtype-limits]

#define AP3_GPIO_IS_VALID(pad) ((pad >= 0) && (pad < AP3_GPIO_MAX_PADS))

^

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_gpio.h:53:59: note: in expansion of macro ‘AP3_GPIO_IS_VALID’

inline bool ap3_gpio_is_valid(ap3_gpio_pad_t pad){ return AP3_GPIO_IS_VALID(pad); }

^~~~~~~~~~~~~~~~~

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_gpio.h: In function ‘bool ap3_gpio_has_gpio(ap3_gpio_pad_t)’:

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_gpio.h:45:43: warning: comparison is always true due to limited range of data type [-Wtype-limits]

#define AP3_GPIO_IS_VALID(pad) ((pad >= 0) && (pad < AP3_GPIO_MAX_PADS))

^

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_gpio.h:54:59: note: in expansion of macro ‘AP3_GPIO_IS_VALID’

inline bool ap3_gpio_has_gpio(ap3_gpio_pad_t pad){ return AP3_GPIO_IS_VALID(pad); }

^~~~~~~~~~~~~~~~~

In file included from /Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/Arduino.h:78,

from /var/folders/85/1kqycjv97s5c_3qrnqq7v2ww0000gn/T/arduino_build_956414/sketch/example1_blink.ino.cpp:1:

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_analog.h: At global scope:

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/cores/arduino/ard_sup/ap3_analog.h:37:14: warning: ‘g_ADCHandle’ defined but not used [-Wunused-variable]

static void *g_ADCHandle;

these warnings seem to repeat a few times

Then this Error

Sketch uses 7168 bytes (0%) of program storage space. Maximum is 960000 bytes.

java.io.IOException: Cannot run program “/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/tools/ambiq/macosx/artemis_svl/artemis_svl”: error=2, No such file or directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

at java.lang.Runtime.exec(Runtime.java:620)

at java.lang.Runtime.exec(Runtime.java:485)

at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)

at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)

at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383)

at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:197)

at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)

at processing.app.SketchController.upload(SketchController.java:732)

at processing.app.SketchController.exportApplet(SketchController.java:703)

at processing.app.Editor$UploadHandler.run(Editor.java:2070)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.io.IOException: error=2, No such file or directory

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.(UNIXProcess.java:247)

at java.lang.ProcessImpl.start(ProcessImpl.java:134)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

… 11 more

An error occurred while uploading the sketch

Invalid library found in /Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/libraries/CoreTesting: no headers files (.h) found in /Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/libraries/CoreTesting

Invalid library found in /Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/libraries/CoreTesting: no headers files (.h) found in /Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/libraries/CoreTesting

/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/libraries/CoreTesting/examples/example5_Wire/example5_Wire.ino

It looks like the real Error is during upload.

Sketch uses 7168 bytes (0%) of program storage space. Maximum is 960000 bytes.

java.io.IOException: Cannot run program “/Users/nicholastrienens/Library/Arduino15/packages/SparkFun/hardware/apollo3/1.0.0/tools/ambiq/macosx/artemis_svl/artemis_svl”: error=2, No such file or directory

okay diving in.

found a bad path in platforms.txt line 161

was

tools.artemis_svl.pgm.macosx={runtime.platform.path}/tools/ambiq/macosx/artemis_svl/artemis_svl

looks like it should be

tools.artemis_svl.pgm.macosx={runtime.platform.path}/tools/artemis/macosx/artemis_svl/artemis_svl

also needed to chmod 777 on Artemis_svl

But Got

Sketch uses 7168 bytes (0%) of program storage space. Maximum is 960000 bytes.

Connecting over serial port /dev/cu.usbserial-1410…

Unknown BL response

chose a slower buad and got a successful upload