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

How to get nRF51822 serial number and HW ID through SEGGER?

Dear Nordic Developer Zone,

At this time, I am able to program nRF51822 chips using the nrfjprog software : great.

I plan to use nrfjprog software driven by a custom C# software in production line to program bunch of nRF51822 chips.

Of course, I would like keep traces of all programmed chips. So here is my question : How can I retrieve the chip serial number and chip hardware ID like NRF51822_QFAA_C0?

Best regards

Parents
  • This can be done with the --memrd option. In FICR, there is a CONFIGID and a DEVICEID[0] and DEVICEID[1] register, the first one contain an ID for the hardware in the lower 16 bits, while the DEVICEID registers contain a 64 bit unique ID for the chip. These three registers can for example be read like this:

    
    C:\temp>nrfjprog --memrd 0x1000005c --n 12
    1000005c  ffff001d 3d31c239  1234c90f           |....9.1=..4.|
    Successful...
    
    

    As you can see, the HWID is 0x1d, while the other two words are the DEVICEID. If you instead want to read out the registers used for the Bluetooth address, you should read the DEVICEADDR registers, which are at offset 0xA4 and 0xA8. The offsets are given in table 6 in the nRF51 Reference Manual.

Reply
  • This can be done with the --memrd option. In FICR, there is a CONFIGID and a DEVICEID[0] and DEVICEID[1] register, the first one contain an ID for the hardware in the lower 16 bits, while the DEVICEID registers contain a 64 bit unique ID for the chip. These three registers can for example be read like this:

    
    C:\temp>nrfjprog --memrd 0x1000005c --n 12
    1000005c  ffff001d 3d31c239  1234c90f           |....9.1=..4.|
    Successful...
    
    

    As you can see, the HWID is 0x1d, while the other two words are the DEVICEID. If you instead want to read out the registers used for the Bluetooth address, you should read the DEVICEADDR registers, which are at offset 0xA4 and 0xA8. The offsets are given in table 6 in the nRF51 Reference Manual.

Children
Related