I followed the directions here to get my Particle Electron up and running:
However, when debugging, I’d like to remove optimizations from my code to better see where it’s stepping through. When I followed these directions:
I’m getting the following error in Eclipse:
/firmware/hal/src/stm32f2xx/usb_hal.c:435: undefined reference to `HAL_ServicedIRQn’
collect2: error: ld returned 1 exit status
make: *** [/target/.elf] Error 1
…/build/module.mk:222: recipe for target ‘/target/.elf’ failed
make: *** [target/.bin] Error 2
make: Leaving directory ‘/firmware/main’
It’s literally the difference of switching the little optimization flag on or off, I’m not sure why I’m getting this error at all.
Makefile:16: recipe for target ‘target/smartfin.bin’ failed
I’m using the release/v0.7.0-rc.1 branch.