samples/wifi/scan broken without programmed OTP

The WiFi scan sample is currently broken is several ways when the OTP isn't programmed:
https://github.com/nrfconnect/sdk-nrf/blob/ea31b211be92f0f837cec1a70be665ec6ff712c3/samples/wifi/scan/src/main.c#L297

* net_if_down() fails with -EAGAIN because it fails to come up in the first place without a MAC address

* NET_REQUEST_ETHERNET_SET_MAC_ADDRESS fails because it is trying to pass the MAC address as a string, instead of a struct ethernet_config

Parents
  • Hi

    Our devices are shipped with the OTP memory access in the disabled state, so some steps are necessary to enable write/read access of the OTP, and to let you I.E. write a MAC address onto the nRF7002. This is described in this application note under OTP memory programming.

    The following steps are required:

    1. Set the protection registers (REGION.PROTECT[0..3]) to 0x50FA50FA to enable read/write access of the remaining OTP memory locations with the Wi-Fi Radio test command wifi_radio_ficr_prog otp_write_params 0x100 0x50FA50FA.
    2. Reboot the device to finish enabling read/write access to the OTP memory.
    3. Update the OTP memory registers described in various steps in Production line operations.
    4. Set the OTP memory to protected state with the Wi-Fi Radio test command wifi_radio_ficr_prog otp_write_params 0x100 0x00000000.

    Best regards,

    Simon

  • I am not asking how to configure the OTP, I am notifying you that the sample is incorrect when it is not programmed.

    Explicitly because the sample is attempting to handle that case, and failing.

Reply Children
No Data
Related