Hi,
The device I'm developing has a battery powered RTC, which needs to be initialized with the correct time at the initial run. Right now, I'm manually configuring the date and time in the code and uploading it to the MCU. I'd like to automate it so that the time is updated from the PC time during compiling or through JTAG. I tried using time() and localtime() functions from <time.h> library, but it didn't work as expected. Is what I'm proposing possible? If it is, how should I proceed?