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

Can't upload the program to an NRF52805 from SEGGER studio using NCS

Hello, when trying to program a custom board with an NRF52805 with a J-Link from SEGGER Studio using one of the examples for the board "nrf52dk_nrf52805", I get an error saying "Failed to write memory" when it uploads.

If I try to upload the hex file using the NRF programmer and then I attach the debugger manually, it works as expected.

Therefore, I think that SEGGER studio is trying to upload the code to an NRF52840 NRF52832 (which emulates the NRF52805 in the nrf52-DK).

How can this be fixed?

Parents
  • Therefore, I think that SEGGER studio is trying to upload the code to an NRF52840 (which emulates the NRF52805 in the DK).

    It's not possible to emulate the nRF52805 with the nRF52840 (nRF52840-DK), you need to use an nRF52832 (nRF52-DK) for that. This could potentially be the reason for your problems.

    If that does not explain your problems, then I think I need a description or picture of your hardware setup and wiring between boards.

    Kenneth

  • Hello, maybe I didn´t explain myself correctly, but I am trying to flash a custom board with the NRF52805 IC on it.

    I am having problems running the "hello world" example on it because of that "Failed to write memory" error.

    I think that happens because the nRF52-DK board is selected in the SEGGER project and therefore it is trying to flash it as if the MCU was the nRF2832 of a DK.

    My best guess is that I probably need a new board definition for working with the NON-emulated IC, but I have been looking around and I don´t see any guide on how to do it with the new NCS.

    Hope my problem is clearer now.

    Thank you

Reply
  • Hello, maybe I didn´t explain myself correctly, but I am trying to flash a custom board with the NRF52805 IC on it.

    I am having problems running the "hello world" example on it because of that "Failed to write memory" error.

    I think that happens because the nRF52-DK board is selected in the SEGGER project and therefore it is trying to flash it as if the MCU was the nRF2832 of a DK.

    My best guess is that I probably need a new board definition for working with the NON-emulated IC, but I have been looking around and I don´t see any guide on how to do it with the new NCS.

    Hope my problem is clearer now.

    Thank you

Children
Related