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

Linker script for OpenThread

Hello,

I am trying to adapt open thread coap example to use with the PCA10059/NRF52840 Dongle board. I am using segger IDE.

I adapted the CLI to use the USB like in the thread_cli_usb_bootloader example. Still, the code was getting stuck in "otInstanceInitSingle". I saw this thread about using multiprocol  and I guessed it was something similar. Unfortunately I did not find the best way to solve this.

I could not find any way to change the linker file, maybe I did it correctly and am unaware. 
When I checked "flash_placement.xml" in the thread_cli_usb_bootloader example and compared to the coap and found a difference. I just tried to replace it and the example ran fine.
Is there a correct way to do this?


Parents Reply
  • Hello, thanks for the answer.

    Well I already had changed the "section placement macros".
    When searching for "flash" in the options it showed "memory segments" under build. It seems that's the thing I was looking for, where it has on the PCA10059 project "ot_flash_data RX 0x000dc000 0x4000" and in the PCA10056 project "ot_flash_data RX 0x000fc000 0x4000".

    Is there any reason this has to be different depending on the board? 

Children
Related