Error building bsp sample1 on mac with sdk 2.0.0

I am following the hookup guide on Mac and having compile problems.

I am using AmbiqSuite-Rel2.0.0 as advised.

Makefile seems to look for SWROOT (not AMB_ROOT)

After adding SWROOT make clean shows

example1_edge_test$ make clean

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C gcc/ clean SWROOT=/Users/ivos/tools/AmbiqSuite-Rel2.0.0 SCRIPTROOT=/Users/ivos/tools/AmbiqSuite-Rel2.0.0/scripts/buildproj

Cleaning…

default target is looking for config-template/ini - and I can’t find anywhere

make

cp -f config-template.ini config.ini; \

sed -i ‘s#$(family)##g’ config.ini; \

sed -i ‘s#$(package)##g’ config.ini; \

sed -i ‘s#$(bsp)#…/…/…/…/boards//bsp#g’ config.ini; \

cp: config-template.ini: No such file or directory

make bootload

make: *** No rule to make target `bootload’. Stop.

make all seems to be working…not sure if it is correct

make all

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C gcc/ all SWROOT=/Users/ivos/tools/AmbiqSuite-Rel2.0.0 SCRIPTROOT=/Users/ivos/tools/AmbiqSuite-Rel2.0.0/scripts/buildproj

Compiling gcc …/src/main.c

Compiling gcc …/…/…/…/…/devices/am_devices_led.c

Compiling gcc …/…/…/…/…/utils/am_util_delay.c

Compiling gcc …/…/…/…/…/utils/am_util_faultisr.c

Compiling gcc …/…/…/…/…/utils/am_util_stdio.c

Compiling gcc startup_gcc.c

Compiling gcc …/src/tf_adc/tf_adc.c

Compiling gcc …/src/tf_accelerometer/tf_accelerometer.c

…/src/tf_accelerometer/tf_accelerometer.c: In function ‘platform_read’:

…/src/tf_accelerometer/tf_accelerometer.c:336:31: warning: assignment to ‘uint32_t *’ {aka ‘long unsigned int *’} from incompatible pointer type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wincompatible-pointer-types]

iomTransfer.pui32RxBuffer = bufp; // Link in the RX buffer

^

Compiling gcc …/src/tf_accelerometer/lis2dh12_reg.c

Linking gcc bin/example1_edge_test.axf

Copying gcc bin/example1_edge_test.bin…

I guess I have some configuration issue - how to fix it?

Hmm, sorry about the trouble you’re having. From the first output (concerning config.ini) I have a suggestion. I’ve run into this problem before when the BSP library did not exist. To build the BSP navigate up out of the ‘examples’ directory and back down into boards\SparkFun_Edge_BSP\bsp\gcc. From there run ‘make’ then try again with example1. Please let me know whether that works for you or not.

No luck. I gave up on Mac.

I can build on Ubuntu - but having problems with flashing

Will do one last attempt on Windows

@ivostoy, sorry you’re having trouble uploading. You probably are aware that bootloader operation is a long-standing problem with the Edge board. We’re working on a solution for this on the next version of the Edge, as well as future Apollo3 modules.

If you can’t wait for the next generation of the Edge there is another (far more reliable) way to get code onto your Edge board. You can use a JTAG/SWD programmer such as a SEGGER J-Link to either directly upload the code or reconfigure your bootloader to run at a lower baud rate to make it possible to bootload over UART on the Ubuntu machine.

(P.s. Windows has been very reliable, so I am hopeful that will work for you)