Relocating a program to strart at a specific address in flash

There is a very good nRF52840 Dongle programming tutorial at : nRF52840 Dongle Programming Tutorial 

This tutorial is for the Segger_Studio ide and shows how to relocate a program to a specific flash location above the mbr.  I am using VSCODE with nRF_Connect_Extension; does anyone know how to do this under the VSCODE IDE?

Parents
  • Hello,

    I don't think you need to specify the offset directly when you are building with the nRF Connect SDK (NCS) for the nRF52840 Dongle. I assume what you want to do is to build an application using NCS and VS Code, and flash it to the dongle?

    In that case, just make sure to build for the correct board, "nrf52840dongle_nrf52840", and it will handle everyghing with the offset.

    Best regards,

    Edvin

  • Hi Edvin,

    After I posted this request I noticed that it was relocating the code automatically, so I suspect you are right.  I was trying to follow the “Programming rhe nRF52840 dongle” tutorial which uses the Segger IDE. So, I was just slavishly trying to follow directions without fully understanding what I was doing.

    In any case. I apologise for the bother and thank you for your time on this matter.

    Jerry

Reply
  • Hi Edvin,

    After I posted this request I noticed that it was relocating the code automatically, so I suspect you are right.  I was trying to follow the “Programming rhe nRF52840 dongle” tutorial which uses the Segger IDE. So, I was just slavishly trying to follow directions without fully understanding what I was doing.

    In any case. I apologise for the bother and thank you for your time on this matter.

    Jerry

Children
No Data
Related