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?