How to generate nRF52840 dongle hex file with using external J-Link to program and run directly?

NCS v2.7.0

nRF52840 dongle

I want to program the nRF52840 dongle with external J-Link, and I can connect to nRF52840 dongle with SWD now.
Using "nRF52840 Dongle nRF52840" configuration to generate the .hex file, the address start from 0x1000.


How to change the .hex file start from address 0x0000 without using bootloader(MBR)?

I read the following thread but can't find the zephyr.dts file has the same address in NCS v2.7.0 to modify.

 RE: nRF connect vscode samples for 52840-dongle PCA10059 

                    boot_partition: partition@1000 {
                        label = "mcuboot";
                        reg = < 0x1000 0xf000 >;
                    };

  • Hi,

    How to change the .hex file start from address 0x0000 without using bootloader(MBR)?

    You can add the configurations CONFIG_FLASH_LOAD_OFFSET=0 or CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n in the prj.conf simply. Then you should see that the generated application image will no longer have the 0x1000 offset, and you should be able to program it with an external programmer, and it should run as you'd expect. 

    Regards,
    Amanda H.

Related