This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069: Get date-time from host computer when building or flashing

Part Number: TMS320F28069


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?