How to store configuration values on a STM32L432
Hello. I would like to store specific configuration values on several STM32L432. They are related to network configuration parameters (network ID, element ID, number of elements in the network, etc.) and It should be changed sometimes. They are elements powered by batteries in which the power consumption is critical.
One possibility is to activate USB (using higher clock velocity) for example 30 seconds after reset, and if there is USB connection, then receive the configuration parameters, and then write them into the FLASH memory using EEPROM emulation. Then suspend the USB and slow down clock velocity to 8MHz. I've read that it is very difficult on the STM32L432 to stop completely the USB from draining a lot of current (something related to pull up and pull down resistors of DP and DM (USB data lines)). The low power requirements prevents to use this system.
I've thought to use ST-Link utility, so I can write configuration values to specific memory positions, without erasing the firmware. Is it possible? Someone has ever done something similar? Do you know better alternatives?
Thanks in advance, best regards,
Diego.