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

How to flash another unit by reading a binary from existing working unit?

Hi, I am using SDK 15.1

My device is got hang during execution, namely in the function fds_init() - > while(!m_fds_initialized){..}

I wanted to reproduce this issue on another unit, so i used the following method -

  • nrfjprog --readcode code.hex
  • I used this code.hex and used nrfjprpg --program code.hex --sectorerase to program another unit
  • when i tried to run this it got stuck at pm_init() saying that flash was not initialized.

just to be sure, I flash a brand new unit with a working binary of the same version and did the above procedure again, to my surprise even doing --readcode of working binary and then flashin it on a different unit gave me the same pm_init() FLASH STORAGE FULL error.

Any thoughts on this??

What is the correct way of getting a hex/binary from a unit and then flashin it on another unit to replicate it's flash memory and be able to replicate such errors ?

Related