Please have a look at the attached file for led.h.
#define InitLED(); portLED->IOCR8.U=0x80808080; // initialise and switch on four leds from their port pin
Before I make any further replies please reply to my questions. “how
does the behaviour differ when you do this from inside a task compared
to when you do it from main() (without the scheduler running).”
In other words, have you tested the function does what you expect when
you are not using FreeRTOS? Why would doing something that accesses a
port, that is writes to hardware with no dependency on FreeRTOS, behave
differently inside a task than outside a task?
hello richard, The scheduler is working. the problem is with the clearLED() fuction which was called before the InitLED task. Now the Task body is working. I am now trying to toggle the led inside the task body.
Sorry for the inconviince caused Richard. Many Thanks for your continous support.