Quality RTOS & Embedded Software

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




Loading

UART starving Task

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

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.

Regards.

RE: UART starving Task

Posted by Ruben on May 1, 2013
thank you Richard


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

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