Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 1 month ago.
gcc export build fails due to bootloader_util_arm.c
jacob:BLE_HeartRate3 jacobrosenthal$ make arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -c -g -fno-common -fmessage-length=0 -Wall -fno-exceptions -ffunction-sections -fdata-sections -DNDEBUG -Os -DTARGET_NRF51822 -DTARGET_M0 -DTARGET_NORDIC -DTARGET_NRF51822_MKIT -DTARGET_MCU_NRF51822 -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -DCORTEX_M0 -DARM_MATH_CM0 -DMBED_BUILD_TIMESTAMP=1412886893.49 -DMBED=1 -std=gnu99 -I. -I./mbed -I./mbed/TARGET_NRF51822 -I./mbed/TARGET_NRF51822/TOOLCHAIN_GCC_ARM -I./mbed/TARGET_NRF51822/TARGET_NORDIC -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822 -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nrf-sdk -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nrf-sdk/sd_common -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nrf-sdk/app_common -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0 -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_API -I./mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_API/include -I./BLE_API -I./BLE_API/common -I./BLE_API/services -I./BLE_API/public -I./nRF51822 -I./nRF51822/btle -I./nRF51822/btle/custom -I./nRF51822/common -I./nRF51822/nordic -I./nRF51822/nordic/nrf-sdk -I./nRF51822/nordic/nrf-sdk/s110 -I./nRF51822/nordic/nrf-sdk/sd_common -I./nRF51822/nordic/nrf-sdk/bootloader_dfu -I./nRF51822/nordic/nrf-sdk/app_common -I./nRF51822/nordic/nrf-sdk/ble -I./nRF51822/nordic/nrf-sdk/ble/ble_services -I./nRF51822/nordic/nrf-sdk/ble/device_manager -I./nRF51822/nordic/bootloader_dfu -I./nRF51822/nordic/app_common -I./nRF51822/nordic/ble -I./nRF51822/nordic/ble/ble_services -o nRF51822/nordic/bootloader_dfu/bootloader_util_arm.o nRF51822/nordic/bootloader_dfu/bootloader_util_arm.c nRF51822/nordic/bootloader_dfu/bootloader_util_arm.c:30:7: error: expected '(' before 'void' nRF51822/nordic/bootloader_dfu/bootloader_util_arm.c:74:5: error: stray '#' in program make: * [nRF51822/nordic/bootloader_dfu/bootloader_util_arm.o] Error 1 jacob:BLE_HeartRate3 jacobrosenthal$
Presumably has to do with not using compiler_abstraction.h defines asm void isr_abort(uint32_t reset_handler)
But I tried a few things unsuccessfully and don't need DFU so Im just reporting it.
If you're not using it, you can remove it from the object build list in Makefile.