Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


UART starving Task

Posted by Ruben on May 1, 2013

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

RE: UART starving Task

Posted by Richard on May 1, 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.


RE: UART starving Task

Posted by Ruben on May 1, 2013
thank you Richard

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner