Uploading Bootloader & application

Hi,

I have create a separate .hex file for boot-loader & application. when i try to load them into the nRF52382 through "nRF connect".

It says overwriting has occurred.

please let me know how to do flash the bootloader & the application without overloading issue.

Thank you in advance.

  • Adjust linker memory section of apllication in flash. Seems like you got MBR and application? Bootloader is at the end of the flash

  • can u please guide me, what i should do? because I'm new to this...

  • What is Rizwan.hex? What is the address range of blinky.hex?

    At the beginng of the flash is the MBR expected with range 0x0000 - 0x1000. At 0x1000 is either the softdevice or the application itself if no softdevice is needed

  • Please check i have updated the picture.

    Bootloader.hex - my bootloader file.

    Rizwan.hex - my application, which needs to flash.

  • Take a look here: Nordic Semiconductor Infocenter

    Bootloader is at the end of flash. Application starts at 0x1000 without SD but with MBR. Otherwise it starts at 0x27000 with SD. If the parts are not on the correct address position in flash it wont work. You can specify the adress range of the parts in the linker script. Take a look into your project settings and search for a .ld file.

    it seems your application starts at 0x1000 so no SD is available. To do a DFU update you still need an MBR at 0x0000-0x1000. The reason you face the problem above is the bootloader. It shouldnt be at the beginng of the flash or collapse with the application at all.

1 2 3