divakar.raj
Newbie level 2
Hi all, I have worked on various peripherals of PIC18F4520 microcontroller, but I am new to RTOS. To begin with, I am trying with "PICos18".
I followed the exact instruction given in the below link, to create two tasks. One tasks to turn ON an LED and the other task to blink another LED:
https://softelec.pagesperso-orange....utorial/Projects_RTOS_PICOS18_tutorial_us.htm
I have downloaded the PICos18 source from:
https://softelec.pagesperso-orange.fr/Projects/RTOS/PICOS18/PICOS18_v1_11.zip
Issue:
But when I try to run the above built hex file on a PIC18F4520 board, the blinking task (task2) executes only for 4 times successfully. After that the task2 stops executing.
When i debug using breakpoints, at the kernel.asm, the control moves into "No task in RUNNING state" mode, i.e., it continously moves into the label "_while" at kernel.asm. This doesnt happen during the first four times. It blinks properly for the first four times.
Can someone direct me where I am going wrong.
Note: I use Microchip-C18 compiler to build the source (as instructed at the link)
Thanks,
Divakar Raj R
I followed the exact instruction given in the below link, to create two tasks. One tasks to turn ON an LED and the other task to blink another LED:
https://softelec.pagesperso-orange....utorial/Projects_RTOS_PICOS18_tutorial_us.htm
I have downloaded the PICos18 source from:
https://softelec.pagesperso-orange.fr/Projects/RTOS/PICOS18/PICOS18_v1_11.zip
Issue:
But when I try to run the above built hex file on a PIC18F4520 board, the blinking task (task2) executes only for 4 times successfully. After that the task2 stops executing.
When i debug using breakpoints, at the kernel.asm, the control moves into "No task in RUNNING state" mode, i.e., it continously moves into the label "_while" at kernel.asm. This doesnt happen during the first four times. It blinks properly for the first four times.
Can someone direct me where I am going wrong.
Note: I use Microchip-C18 compiler to build the source (as instructed at the link)
Thanks,
Divakar Raj R