Forum Discussion
Altera_Forum
Honored Contributor
14 years agoYou are right with teh sys_clk_timer! I changed it and now it doesn't crash any more! Thanks!
I can't find the # include "tk_crnos.h". I aslo tried something else in my main() function. My code here: --- Quote Start --- OSInit(); OSTaskCreateExt(task1, NULL, (void *)&task1_stk[TASK_STACKSIZE-1], TASK1_PRIORITY, TASK1_PRIORITY, task1_stk, TASK_STACKSIZE, NULL, 0); OSTaskCreateExt(task2, NULL, (void *)&task2_stk[TASK_STACKSIZE-1], TASK2_PRIORITY, TASK2_PRIORITY, task2_stk, TASK_STACKSIZE, NULL, 0); OSStart(); --- Quote End --- And with the OSinit() I just typ in the read instruction just one time but the problem is that after that the system will read every time if the task is started. Here is my console outpu: --- Quote Start --- r1 Neue Fequenz: 0 Systemüberwachung gestartet! Der Chris hat keine Ahnung und der Sämann erst recht! Die Frequenz vom FAD ist momentan auf: 1.306336e+03 Hz Systemüberwachung gestartet! Der Chris hat keine Ahnung und der Sämann erst recht! Die Frequenz vom FAD ist momentan auf: 1.307019e+03 Hz Systemüberwachung gestartet! Der Chris hat keine Ahnung und der Sämann erst recht! Die Frequenz vom FAD ist momentan auf: 1.307702e+03 Hz --- Quote End --- Why this happens? Thanks in advance for the help!