This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Trying to compile DFU bootloader code in segger embedded studio.

When I tried to compile bootloader example code of sdk  bootloader_secure, I am facing some of the errors when I tried to compile using Segger Embedded Studio, which could not be solved. I think this is generating because of compiler difference. I am using s130.

`.bootloaderSettings' will not fit in region `UNPLACED_SECTIONS' region .

   In function `nrf_dfu_transports_init':
     undefined reference to `__stop_dfu_trans'
     undefined reference to `__start_dfu_trans'
   In function `nrf_dfu_bl_continue':
    undefined reference to `__isr_vector'
Build failed

Parents Reply
  • When I ported nRF5_SDK_12.3.0_d7731ad\nRF5_SDK_12.3.0_d7731ad\examples\dfu\bootloader_secure project in Segger Embedded studio

    #elif defined (__GNUC__)

    #define BOOTLOADER_START_ADDR        (uint32_t)&__isr_vector.

    But when I look into current SDK nRF5_SDK_15.3.0_59ac345\nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10040e_ble\ses

    #elif defined(__SES_ARM)  <= It will be under this compiler. So no __isr_vector in this when we use SES compiler

    #define BOOTLOADER_START_ADDR (CODE_START)

Children
Related