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] [December 2009 Threads] Read on serial COM Port ColdFirePosted by Fabian Lanzini on December 1, 2009 Hello,
I've just updated freeRTOS from v3 to v6.0.1. Everything was working fine on v3 and I'm trying to do it on v6. I've met the first problem : when I tried to read a serial port and to fill data in a tab, It lose some packets.
Here's my code that used to work fine on v.3 :
---------- *xPortRF = xSerialPortInit( serCOM1, ser57600, serNO_PARITY, serBITS_8, serSTOP_1, 40 );
[...]
for(i=0;i<22;i++) {
while(!xSerialGetChar(xPortRF, &rxchar,portTICK_RATE_MS)); trameCMD=rxchar;
}
And when I send on serial port for example 01 - 02 - 03 - 04 - 05 - 06
In my tab I have : 01 - 02 - 04 - 01 - 02 - 04 - 01 - 02 - 04 ...
Thank you for the help you may provide to me !
RE: Read on serial COM Port ColdFirePosted by MEdwards on December 1, 2009 Search for "Changes between V4.8.0 and V5.0.0 released April 15, 2008" on http://www.freertos.org/History.txt
Have you taken into account the upgrade instructions given there?
RE: Read on serial COM Port ColdFirePosted by Fabian Lanzini on December 2, 2009 Yes I've taken this instructions.
I forgot to update some files. I've find a new serial.c file v6.0.1 but there's no more xSerialPortInit function.
Where could I found the serial.c file where xSerialPortInit is implemented ?
Thank you
RE: Read on serial COM Port ColdFirePosted by Fabian Lanzini on February 18, 2010 Hello,
I come back still with the same problem ! This time, I'm using a COM port to communicate with a GPS and to read GPGGA and GPRMS data.
3 month ago, I met a problem with my ColdFire 5213 because it was reading only half of the data, so I've changed the serial buffer size from 64 to 128, and this resolved the problem. Yesterday, the problem came again, but instead of increasing the size of the buffer to resolve it, it was necessary to reduce it to 64 but I don't know why... Does anyone has an idea of this problem origin? How can I work with the latest FreeRTOS without the xSerialPortInit function?
Thank you very much if you can help me.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|