Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

alt_timestamp_start() return -1

hi

i build nios system with timer and set the bsp (timestamp,timer)

compile is ok

but when i run the alt_timestamp_start() get -1

and alt_timestamp() also return -1

!! the nticks() work good

i read post from 2005

""I can't see it clearly, but I think you set both your sys_clk_timer and timestamp_timer to be timer0? Can you disable the sys_clk_timer instead? Also remember to press the generate button.""

i was do this mistake too should i fix this ??

i fix that ""sys_clk_timer and timestamp_timer can not be timer0?"" i disable the sys_clk_timer on the bsp editor

tzahi

2 Replies