Task #4 FAIL - PIC24FJ1024GB610, EXPLORER16/32

tinchogleria wrote on Monday, July 17, 2017:

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!

rtel wrote on Tuesday, July 18, 2017:

…and what is Task #4?

tinchogleria wrote on Tuesday, July 18, 2017:

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.

rtel wrote on Tuesday, July 18, 2017:

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

tinchogleria wrote on Tuesday, July 18, 2017:

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

tinchogleria wrote on Tuesday, July 18, 2017:

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.

rtel wrote on Tuesday, July 18, 2017:

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