I have a custom board with the nRF9160 and nRF7200 connected.
I was able to build the radio_test sample to check if everything is working, and for now, it seems to be fine. Here are the PHY stats:
************* PHY STATS *********** rssi_avg = -86 dBm ofdm_crc32_pass_cnt=0 ofdm_crc32_fail_cnt=2 dsss_crc32_pass_cnt=2 dsss_crc32_fail_cnt=0
Next, I tried to program the MAC using this command:
wifi_radio_ficr_prog otp_write_params 0x120 arg1=0x23f4a7f8 arg2=0x06ce
However, I got the following errors:
rtt:~$ wifi_radio_ficr_prog otp_write_params 0x120 arg1=0x23f4a7f8 arg2=0x06ce OTP Region is open for R/W Invalid MAC address. MAC address cannot be all 0's, broadcast or multicast address rtt:~$ wifi_radio_ficr_prog otp_write_params 0x120 arg1=0x23F4A7F8 arg2=0x06CE OTP Region is open for R/W Invalid MAC address. MAC address cannot be all 0's, broadcast or multicast address
After that, I tried writing a command to unlock the OTP:
wifi_radio_ficr_prog otp_write_params 0x100 arg=0x50FA50FA
Unfortunately, the issue now is that it writes 0 to all the registers and locks the OTP. The output shows:
rtt:~$ wifi_radio_ficr_prog otp_write_params 0x100 arg=0x50FA50FA OTP Region is open for R/W Finished Writing OTP params rtt:~$ [00:48:13.181,640] <inf> otp_prog: Written REGION_PROTECT0 (0x100) : 0x0000 rtt:~$ [00:48:13.181,671] <inf> otp_prog: Written REGION_PROTECT1 (0x104) : 0x0000 rtt:~$ [00:48:13.181,671] <inf> otp_prog: Written REGION_PROTECT2 (0x108) : 0x0000 rtt:~$ [00:48:13.181,671] <inf> otp_prog: Written REGION_PROTECT3 (0x10c) : 0x0000 rtt:~$ rtt:~$ wifi_radio_ficr_prog otp_write_params 0x120 arg1=0x23f4a7f8 arg2=0x06ce OTP Region is locked!!! USER Region is not Writeable
I am now unable to unlock the chip because all the arguments are being sent as 0, no matter what I try to write.
I also tried this commands:
wifi_radio_ficr_prog otp_write_params 0x100 arg=0x50FA50FA
wifi_radio_ficr_prog otp_write_params 0x100 arg='0x50FA50FA'
wifi_radio_ficr_prog otp_write_params 0x100 0x50FA50FA
wifi_radio_ficr_prog otp_write_params 0x100 1358582010
For me the issue is that arg always equal to 0 if I send them over RTT.
For sending I use the J-Link RTT Viewer V7.94e