I'm using the nrf7002 on a custom PCB, so its a brand new chip. I haven't done any OTP programming for the mac address and instead it's just a hardcoded mac address that's used at run time. Since I'm using a custom linux driver and not the standard nrf SDK, I was hoping to get some guidance on how to program the mac address. I've read this document, which goes over commissioning and it looks like I need to add some way to write to region protect (0x40), and Mac address 0 (0x48). It also states that it needs to reset after setting the unlock command. So from this I just want to confirm that this is the order of operations:
- Use Radio test firmware for nRF7002
- Write to protect address (0x40) the unlock sequence (0x50FA50FA)
- Reset chip (or power cycle PCB)
- Write to mac address 0 (0x48) the mac address for vif0
- (optional) Write to mac address 1 (0x4A) the mac address for vif1
- Write to protect address (0x40) the protected sequence (0x00000000)
I'll be using ficr_prog functions from nrfxlib to write to OTP, so I assume I don't need to update any mask values. Is this correct?