Task #4 FAIL – PIC24FJ1024GB610, EXPLORER16/32

Hi, I’m running freeRTOS in the demo board mentioned, and after a suggestion in other topic, I void task #2 because de new Explorer16/32 doesn’t came with 9-way socket D connector. Effectively task #2 is not running now, but task #4 sometimes fail. I can not establish a period, but is frecuently. When everything is fine, I see “124ns max jitter” in my display.What may be causing Task # 2 to fail? Trying to solve this problem, I wonder how to debug an application in real time? I apologize if it’s a silly question, this is my first experience with an RTOS. Regards!

Task #4 FAIL – PIC24FJ1024GB610, EXPLORER16/32

….and what is Task #4?

Task #4 FAIL – PIC24FJ1024GB610, EXPLORER16/32

Sorry, I didn’t mention. Is the name given in the FreeRTOS demo application for Microchip’s 16bit microcontroller to the set of tasks defined in BlockQ.c file which are audited by xAreBlockingQueuesStillRunning() function from the Main.c file. The source file can be downloaded from here.

Task #4 FAIL – PIC24FJ1024GB610, EXPLORER16/32

The BlockQ functions are very old and should be very stable. Perhaps the tasks are getting starved out by something else?

Task #4 FAIL – PIC24FJ1024GB610, EXPLORER16/32

I only changed from the original demo application the lcd.c and lcd.h files, because these were not compatible. Could that be related?

Task #4 FAIL – PIC24FJ1024GB610, EXPLORER16/32

In fact, I did not change the files completely, I just commented on the implementation of the functions and called in that point the analog functions that are defined in another file included in the project. Everything related to the LCD task and the defined macros are intact.

Task #4 FAIL – PIC24FJ1024GB610, EXPLORER16/32

Not sure, but possibly. That is not a very helpful answer though :o)