How to read public MAC using the nrfjprog.exe tool?
How to read public MAC using the nrfjprog.exe tool?
Hi,
When I used the same command, I was only able to read the 5 bytes correctly. The Most higher byte does not match.
C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin>nrfjprog --memrd 0x100000A4 --n 8
0x100000A4: 121DCF55 7C1D8BD6 |U......||
From Nrfconnect, I noticed a different mac address.
Am I missing anything?
Hi,
When I used the same command, I was only able to read the 5 bytes correctly. The Most higher byte does not match.
C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin>nrfjprog --memrd 0x100000A4 --n 8
0x100000A4: 121DCF55 7C1D8BD6 |U......||
From Nrfconnect, I noticed a different mac address.
Am I missing anything?
Hi Daniel
The device address bytes stored in the flash are random numbers, and won't necessarily follow the Bluetooth specification requirements for a valid BLE address.
When using a static random BLE address the two most significant bits shall both be 1, which is why 0x8B is changed to 0xCB by the SoftDevice before setting the address.
For more information please refer to the Device Address chapter in the Bluetooth specification (Vol 6, Part B, chapter 1.3 in v5.0 of the specification).
Best regards
Torbjørn