Quality RTOS & Embedded Software

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




Loading

Read on serial COM Port ColdFire

Posted 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 ColdFire

Posted 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 ColdFire

Posted 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 ColdFire

Posted 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.


[ 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