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

Porting exemples with Softdevice from PCA10056 to PCA10059

Hello


I notice that exemples with Softdevice (nRF5_SDK_for_Thread_and_Zigbee_v4.0.0_dc7186b) works fine for a PCA10056 but not on a PCA10059.

When I had tried to make this exemples works for a PCA10059 (following the instructions given here "https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial
" - replace BOARD_PCA10056 to BOARD_PCA10059 in preprocessor definitions), it never worked: once the device programmed (with nRF Connect), nothing happened (the dongle is not detected once plugged into a COM port (if I push on reset button it is detected but it stays in boot mode) )

Jørgen Holmefjord  confirmed me that there are a problem... This was his reply (ticket at devzone.nordicsemi.com/.../porting-ble_thread_dyn_mtd_coap_cli-from-pca10056-to-pca10059):
"I did a test with the latest SDK version, by changing BOARDS_PCA10056 to BOARDS_PCA10059, but I'm not able to run it on the dongle. It seems to run fine on the nRF52840 DK however. I think this is related to the lack of a UART port on the dongle, and/or GPIO config for LEDs and button(s). I will try to make a working version of the application for the dongle."

This is a very serious problem for my project: could you look at it?


Thank you very much

  • Perhaps the file doesn't take the bootloader into account. 0xF4000 and 0xFC000 are both inside the bootloader area.

    Perhaps you can try to move it outside the bootloader area? Assuming it needs 0x4000 bytes, try putting it in 0xE0000. Does that change the behavior? If not, I'll look into how the flash management is done in OT. I would be surprised if the SDK examples doesn't check for a bootloader.

    All the dongle projects (pca10059) in the SDK should do, perhaps you can compare how it is done there?

    The start address of the application is also something to consider. Normally you need to leave space for the MBR when you port examples to the dongle, but when you use the softdevice, the MBR is included there, so I don't think that is something you need to worry about in that particular project.

    BR,

    Edvin

  • I don't know why I wrote 0xFC000 for the start address...

    If I write 0xE0000 for the "start_ot_flash_data" address, it's works.

    Thank you very much.

Related