This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DFU: Settings to compile secure_bootloader_ble_s140_pca10056.hex

What are the memory settings in the SES compiler to compile secure_bootloader_ble_s140_pca10056

When I try to merge:

mergehex --merge s140_nrf52_7.2.0_softdevice.hex target_application.hex secure_bootloader_ble_s140_pca10056.hex --output temp_merg.hex

I get the failed message:

Parsing input files.
Merging file "s140_nrf52_7.2.0_softdevice.hex" into output.
Merging file "target_application.hex" into output.
Merging file "secure_bootloader_ble_s140_pca10056.hex" into output.
Overlapping segments detected at address 159744.ERROR: The hex files cannot be merged since there are conflicts.

Do I need to change any of the memory settings for the Linker?

Memory Segments, or Section Placement Macros?

In SES, The secure_bootloader_ble_s140_pca10056 project indicates it inherits from project in Common configuration

"FLASH_PH_START=0x0;

FLASH_PH_SIZE=0x100000;

RAM_PH_START=0x20000000;

RAM_PH_SIZE=0x40000;

FLASH_START=0xf8000;

FLASH_SIZE=0x6000;

RAM_START=0x20005978;

RAM_SIZE=0x3a688"

I got it to work some time ago with nRF5_SDK_17.0.2_d674dde, but now I use nRF5_SDK_17.1.0_ddde560 with no luck

Any help appreciated

Parents
  • Karl,

    My target application Section Placement Macros
    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x100000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x40000
    FLASH_START=0x27000
    FLASH_SIZE=0xd9000
    RAM_START=0x20002ae8
    RAM_SIZE=0x3d518

    TheSection Placement Macros secure_bootloader_ble_s140_pca10056
    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x100000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x40000
    FLASH_START=0xf8000
    FLASH_SIZE=0x6000
    RAM_START=0x20005978
    RAM_SIZE=0x3a688

    I also changed these to the same as target application Section Placement Macros, but that did not work either, does not make sense

Reply
  • Karl,

    My target application Section Placement Macros
    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x100000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x40000
    FLASH_START=0x27000
    FLASH_SIZE=0xd9000
    RAM_START=0x20002ae8
    RAM_SIZE=0x3d518

    TheSection Placement Macros secure_bootloader_ble_s140_pca10056
    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x100000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x40000
    FLASH_START=0xf8000
    FLASH_SIZE=0x6000
    RAM_START=0x20005978
    RAM_SIZE=0x3a688

    I also changed these to the same as target application Section Placement Macros, but that did not work either, does not make sense

Children
No Data
Related