This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

mergehex s140_nrf52_7.2.0_softdevice.hex with application hex failing with overlapping segments at address 155648

I have been successfully using mergehex with s140_nrf52_6.1.0_softdevice.hex and a bootloader to create firmware packages for my nRF52840-based device and wanted to try softdevice 7.2.0 to take advantage of Bluetooth 5.1 support. However, I'm getting the error: "Overlapping segments detected at address 155648". Following are my memory segments:

FLASH_PH_START=0x0
FLASH_PH_SIZE=0x100000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x40000
FLASH_START=0x27000
FLASH_SIZE=0xda000
RAM_START=0x20005000
RAM_SIZE=0x3ffff

I assume 155648 = 0x26000, but my FLASH_START is 0x27000. I tried the "usbd_ble_uart" example in nRF5_SDK_17.0.2_d674dde with s140_nrf52_7.2.0_softdevice.hex, but got the same error of overlapping segments at address 155648. My mergehex version is 10.13.0 running on a Mac OS 10.14.6. Could someone please tell me what I'm doing wrong?

  • Hi, 

    Try this:

    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

    Regrads,
    Amanda

  • Hi Amanda,

    Thanks for the reply, but unfortunately, it didn't change anything. Still the same error Disappointed

    Here's the memory map according to the nRF Connect, which recognises the application start at 0x27000.

    I just tried s140_nrf52_7.3.0_softdevice and got the same error, but all works well with s140_nrf52_6.1.0_softdevice.

    Regards,

    Dushyantha

  • Hi, 

    Are you merging nRF5_SDK_17.0.2 usbd_ble_uart with s140_nrf52_7.2.0_softdevice? I cannot reproduce the issue with that and s140_nrf52_7.3.0_softdevice. 

    Try the command line tool later than version 10.12.2 or Windows PC. Have a look at this post

    Regards,
    Amanda 

  • Hi,

    Yeah. I was trying to merge my own application, but once that kept on failing, I tried the nRF5_SDK_17.0.2 usbd_ble_uart with s140_nrf52_7.2.0_softdevice. My mergehex version is 10.13.0. But since I couldn't even merge the files that came with the nRF5_SDK_17.0.2, which you couldn't reproduce, I guess I have a problem in my system (either SES 5.44 or the command line tool). I'll try to get hold of a Windows PC and try again.

    Best Regards,

    Dushyantha.

  • Hi Amanda,

    Just confirmed that it works with mergehex version 10.14.0, both on Windows 7 and Mac (Catalina), for both s140_nrf52_7.2.0 and 7.3.0 softdevices. So I guess the issue is linked with mergehex 10.13.0 or lower and s140_nrf52_7.2.0_softdevice +.

    Thanks for the help. 

    Best regards,

    Dushyantha

Related