FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2013 Threads] UART starving TaskPosted 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 TaskPosted 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 TaskPosted by Ruben on May 1, 2013 thank you Richard
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|