Forum Discussion
Altera_Forum
Honored Contributor
14 years agoRead problem by using MicroC/OS-II
Hi, I'm a new in using mutitasking tasks. I have the following code:
int startTheSystem=0;
int systemWasBooted=0;
int controlTheSystem=0;
char befehl;
long int zahl=0;
void system_Monitoring(...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- TK_SLEEP() is not declared. In which header is it? --- Quote End --- Can't remember Try # include <ucos_ii.h> Or maybe # include "osport.h" --- Quote Start --- I also recognized an other probelm. I can read the valu with the instruction "r2" and "r3" but if I read the value "r1" over the PIO my system hang and nothing more happens. What made I'm wrong that this happens if I try to measure the frequency over the "r1" instruction? --- Quote End --- You definitely have a problem in your function count_The_Frequency_Of_The_FAD(). I can't see the function body, but I guess it contains an infinite loop.