Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Linker issues in the connectivity firmware

Hi,

I am trying to build the connectivity firmware for a custom dongle based on the nrf52832. I am getting a section overlap issue when I am trying to build the solution from SES.

Steps followed til now:

-> Downloaded the latest version of pc-ble-driver from the github page.

-> Ran the bootstrap_sd_api_v5 script.

-> Opened the ble_connectivity_s132v5_hci_pca10040 located at pc-ble-driver-master\sdk\nRF5_SDK_15.0.0_a53641a\examples\connectivity\ble_connectivity\pca10040\ser_s132v5_hci\ses\

-> Tried to build the solution but got the following error

1> Linking ble_connectivity_s132v5_hci_pca10040.elf
1> "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 3.40/gcc/arm-none-eabi/bin/ld" -X --omagic -eReset_Handler --defsym=__vfprintf=__vfprintf_long --defsym=__vfscanf=__vfscanf_int -EL --gc-sections "-TG:/pc-ble-driver-master/pc-ble-driver-master/sdk/nRF5_SDK_15.0.0_a53641a/examples/connectivity/ble_connectivity/pca10040/ser_s132v5_hci/ses/Output/ble_connectivity_s132v5_hci_pca10040 Release/Obj/ble_connectivity_s132v5_hci_pca10040.ld" -Map Output/Release/Exe/ble_connectivity_s132v5_hci_pca10040.map -u_vectors -o Output/Release/Exe/ble_connectivity_s132v5_hci_pca10040.elf --emit-relocs "@G:/pc-ble-driver-master/pc-ble-driver-master/sdk/nRF5_SDK_15.0.0_a53641a/examples/connectivity/ble_connectivity/pca10040/ser_s132v5_hci/ses/Output/ble_connectivity_s132v5_hci_pca10040 Release/Obj/ble_connectivity_s132v5_hci_pca10040.ind"
1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 3.40/gcc/arm-none-eabi/bin/ld: section .connectivity_version_info LMA [0000000000030000,0000000000030017] overlaps section .rodata LMA [000000000002fd34,00000000000301b7]
Build failed

Chip : nRF52832 QFAA

IDE: Segger Embedded Studio

Thank you

Parents
  • Hi,

    Can you check that sdk150_add_sd_v3v5_support.patch:84195 have been applied to the SES project setting. 

    • Project 'ble_connectivity_s132_hci_pca10040' Options
    • Common configuration
    • Linker->Section Placement Segments
    • Check that "connectivity_version_info RX 0x30000 0x18" is included

    Best regards,
    Jørgen

  • Under Linker, I can't find any Section Placement Segments. There are 'Section Placement Macros' and 'Section Placement File'. There was an option under build, 'Memory Segments', which has the line you spoke of.

    Contents of Build->Memory Segments

    FLASH RX 0x0 0x80000
    RAM RWX 0x20000000 0x10000
    connectivity_version_info RX 0x30000 0x18

    Contents of Linker->Section Placement Macros

    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x80000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x10000
    FLASH_START=0x26000
    FLASH_SIZE=0x5a000
    RAM_START=0x2000b8a8
    RAM_SIZE=0x4758

    These are all under 'Common' configuration.

    Which one should I edit?

    Thank you

Reply
  • Under Linker, I can't find any Section Placement Segments. There are 'Section Placement Macros' and 'Section Placement File'. There was an option under build, 'Memory Segments', which has the line you spoke of.

    Contents of Build->Memory Segments

    FLASH RX 0x0 0x80000
    RAM RWX 0x20000000 0x10000
    connectivity_version_info RX 0x30000 0x18

    Contents of Linker->Section Placement Macros

    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x80000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x10000
    FLASH_START=0x26000
    FLASH_SIZE=0x5a000
    RAM_START=0x2000b8a8
    RAM_SIZE=0x4758

    These are all under 'Common' configuration.

    Which one should I edit?

    Thank you

Children
No Data
Related