# UART starving Task

**URL:** <https://forums.freertos.org/t/uart-starving-task/2397>\
**Category:** Kernel\
**Created:** [May 1, 2013, 9:42am UTC](https://forums.freertos.org/t/uart-starving-task/2397 "2013-05-01T09:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 1, 2013, 9:42am UTC](https://forums.freertos.org/t/uart-starving-task/2397/1 "2013-05-01T09:42:00Z")

</div>

**[lfxciii](https://sourceforge.net/u/lfxciii/)** wrote on [Wednesday, May 01, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/68c11f3a/#b5fb):

Hi

I’m working with the pic32&nbsp; 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,&nbsp; 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

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [May 1, 2013, 1:28pm UTC](https://forums.freertos.org/t/uart-starving-task/2397/2 "2013-05-01T13:28:45Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, May 01, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/68c11f3a/#ebd1):

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

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 1, 2013, 6:17pm UTC](https://forums.freertos.org/t/uart-starving-task/2397/3 "2013-05-01T18:17:10Z")

</div>

**[lfxciii](https://sourceforge.net/u/lfxciii/)** wrote on [Wednesday, May 01, 2013](https://sourceforge.net/p/freertos/discussion/382005/thread/68c11f3a/#932b):

thank you Richard
