UART starving Task

lfxciii wrote on Wednesday, May 01, 2013:

Hi

I’m working with the pic32  freeRTOS demo. I have one task which has to write to the UART every 200 ms. then on interrupt rx, i do some stuff with the incomming byte.

The problem is:

1. I create a handle in main for the uart using serial.c (comes with the Demo) like so : comHandle = xSerialPortInitMinimal(9600, 2);

2. after I do this, the interrupts continuously occur, so my task (defined in main) does not run.

3. when i take out the above line, the task runs fine.

I think its some configuration I’m missing,  I’m using the demo as is and I’m reading the tutorial book, just some thing I’m not yet getting down.

I appreciate any help.

Thank you

rtel wrote on Wednesday, May 01, 2013:

Different PIC32 devices have different UART and interrupt implementations.  The code in the demo is for the PIC32MX460 arrangement and will not work on newer PIC32 devices.  Shortly the demo will be updated to work on all PIC32 devices, but I don’t have a date for that yet.

Regards.

lfxciii wrote on Wednesday, May 01, 2013:

thank you Richard