Altera_Forum
Honored Contributor
10 years agoCyclone V, System Time after Reset
hi everybody,
I've got a Cyclone V Dev.- Board (Model: E), with a NIOS 2 Processor. I want to read out the System Time from the Dev- Board, and want to set the System Time to the Dev- Board, that the Dev's time is the actual Date and Time. After i reset the Board, the kit should show me the actual date and time via c-code. Often i tried things like settimeofday() and gettimeofday() in different variants (tried "localtime" too), but doesnt work (i can show you the code if relevant) After a power down and a power up again, the Board just showed me the first january 1970, 0:00:00. There is plugged a new CR2032 Battery under the LCD- Screen. The NIOS 2 Processor is not configurated for the systemTime, but i think, it doesnt matter. My next idea would be, that i set the system time via the altera BTS, but Its not sure, if the BTS supports the set- method. Does anybody have an idea? Thank you. Best regards, Thomas