Home
Home copied to clipboard
Set RTC time via nanoff
Description
When performing a fresh firmware update to a target board; In some circumstances, devices will not have immediate access to a source clock but require a valid datetime. Then it should be possible to pre-configure the current datetime upon deployment.
How to solve the problem
It should be possible to update it via nanoff using at mimimum the (PC) time. Potentially (re)set it after flashing the latest firmware.
Describe alternatives you've considered
No response
Aditional context
No response
It's not that straight forward as it does require to add a debug function for this. What about this in the mean time:
- You create a small application that set the time
- You deploy in the internal storage the time
- Once reset, the app reads the file and set the time (it's going to be approximate but in a second or so)
- You can redeploy another app and clean the storage, the time should stay