This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

for merge hex files

Hi. I'm using nRF51822AC, SDK12.2.0, S130 v2.0.1 as central.

I'm using mergehex for merging hex files. It's mergehex --merge s130_nrf51_2.0.1_softdevice.hex nrf51422_xxac.hex --output out.hex It has worked well.

But after I added bootloader_secure as below

mergehex --merge s130_nrf51_2.0.1_softdevice.hex nrf51422_xxac.hex bootloader_secure.hex --output out.hex

I faced a problem. I can download merged file to J-flash, but it can't download file to target.

I think it's memory map problem.

I'm using memory map as below.

App : IROM1 : Start :0x1B000 Size : 0x1FC00

Boot: IROM1 : Start :0x3AC00 Size : 0x5000

Is it right?

I need your help.

Ps. When I compile and execute bootloader, I can see the keil message as below.

No Algorithm found for: 10001014H - 10001017H Partial Erase Done (areas with no algorithms skipped!) No Algorithm found for: 10001014H - 10001017H Partial Programming Done (areas with no algorithms skipped!) Partial Verify OK (areas with no algorithms skipped!) Application running ...

I didn't care because code was running well.

Parents
  • Hi Roger,

    the memory settings are correct. The addresses that JFlash says there is no flash algorithm for are the UICR registers of the nRF51. You should use nrfjprog to flash the bootloader, which writes to the UICR registers, to avoid the error you're seeing.

    Best regards

    Bjørn

  • It could be that you did not erase the chip prior to programming the combined hex. If your going to use nrjfprog then I suggest that you add the --chiperase option to erase the entire chip before flashing the combined hex, i.e.

    nrfjprog --program out.hex --chiperase
    
Reply Children
No Data
Related