Forum Discussion
Altera_Forum
Honored Contributor
10 years agoThank you pororo,
I tried below but still not working: int main() { alt_u32 t1; alt_u32 t2; alt_u32 t3; unsigned int i; int ret = alt_timestamp_start(); t1 = alt_timestamp(); for(i=0; i<0x00ffffff; i++) IORD(ONCHIP_MEMORY2_1_BASE,0); t2 = alt_timestamp(); t3 = alt_timestamp_freq(); return 0; } I still get 4209704959 for both t1 and t2. I had never faced this problem when I was using Cyclone IV Development or Custom boards with QuartusII, SOPC Builder & NiosII 11.0sp1. I wonder what I am missing..