Forum Discussion
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, ...
Altera_Forum
Honored Contributor
10 years ago+Additionaly to above: I am using a single- Thread - System, not a multithreading system. System in C- Code is creating via NIOS II 14.0
Now i found out that in "System.h" there is a Define called SYSTEM_TIMER_ALWAYS_RUN. Maybe, this should be enabled? It's set to 0 at the moment. Other idea: Normally you should start the avalon timer once, set the actual time in the avalon_timer, then set SYSTEM_TIMER_ALWAYS_RUN to 1, and you could ask for the actual seconds, so you get the time. Is this way right?