This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

erase NVRAM in the nrf dongle to reset the network parameters

I was just thinking whether the below set of lines could be a solution to the problem faced in this case https://devzone.nordicsemi.com/f/nordic-q-a/83358/light_bulb-example-for-52840-dongle where the zigbee network parameters were not clearing during each flash. The suggestion of flashing clear_flash.hex before each application flash works, but wondering if the below would work and the clear_flash may not be required?

/* Do not erase NVRAM to save the network parameters after device reboot or
 * power-off. NOTE: If this option is set to ZB_TRUE then do full device erase
 * for all network devices before running other samples.
 */
#define ERASE_PERSISTENT_CONFIG    ZB_TRUE

void main(void)
{
    ...
	zigbee_erase_persistent_storage(ERASE_PERSISTENT_CONFIG); // Call before enabling the zigbee enable
	...
}

Related