# Serial Read FreeRTOS v6 on ColdFire MCF5213

**URL:** <https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679>\
**Category:** Kernel\
**Created:** [February 25, 2010, 10:51am UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679 "2010-02-25T10:51:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [February 25, 2010, 10:51am UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/1 "2010-02-25T10:51:18Z")

</div>

**[fabianwork](https://sourceforge.net/u/fabianwork/)** wrote on [Thursday, February 25, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#e6f1):

Hello everybody !

I’ve just updated my FreeRTOS from v3 to v6. A big step !!  
Everything work fine except serial ports. I’ve tried to use my serial.c files from FreeRTOS V3.2.3 and my ColdFire connected to a GPS. But instead of reveiving :  
$GPRMC,144253.75,A,4853.09651,N,00246.358160,E,0.116,9.96,230309,A\*7F\<\r\>\<\n\>  
I receive  
$ G \r \n $ G M \r \n $ P \r \n $ R M C \r \n $ G P \r \n …  
I don’t understand why!

I’ve also tried with the serial.c file from FreeRTOS V6.0.2 but it doesn’t work. I’ve run the debugger but it stay blockeb on&nbsp;&nbsp;

```
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed portCHAR *pcRxedChar, portTickType xBlockTime )
{
	/* Only one port is supported. */
	( void ) pxPort;
	/* Get the next character from the buffer. Return false if no characters
	are available or arrive before xBlockTime expires. */
	if( xQueueReceive( xRxedChars, pcRxedChar, xBlockTime ) )
	{
>>>>> return pdTRUE; <<<<<<<<<< BLOCKED HERE 
	}
	else
	{
		return pdFALSE;
	}
}

```

Does anyone has an idea of what we can do to resolve the problem and work with new versions of FreeRTOS ?

Thank you very much for you help !!

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [February 25, 2010, 10:59am UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/2 "2010-02-25T10:59:58Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Thursday, February 25, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#7fee):

One thing to watch out for is the change that was made to xQueueSendFromISR(). This is going back in time some now and this is the only reference I can find to the change (from the history log).

> \*\*\* VERY IMPORTANT INFORMATION ON UPGRADING TO [FREERTOS.ORG](http://FREERTOS.ORG) V5.0.0 \*\*\*

The parameters to the functions xQueueSendFromISR(), xQueueSendToFrontFromISR(),  
xQueueSendToBackFromISR() and xSemaphoreGiveFromISR() have changed.&nbsp; You must  
update all calls to these functions to use the new calling convention!&nbsp; Your  
compiler might not issue any type mismatch warnings!

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [February 25, 2010, 11:03am UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/3 "2010-02-25T11:03:24Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, February 25, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#e85b):

This is what you are referring to:  
[http://www.FreeRTOS.org/upgrading.html](http://www.FreeRTOS.org/upgrading.html)

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [February 25, 2010, 12:59pm UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/4 "2010-02-25T12:59:34Z")

</div>

**[fabianwork](https://sourceforge.net/u/fabianwork/)** wrote on [Thursday, February 25, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#337a):

Thank you for your very fast answer!  
But I’ve already done all this things and it’s still don’t work.  
What other things can I do please ?  
Thank you.  
Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 8, 2010, 12:22pm UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/5 "2010-03-08T12:22:35Z")

</div>

**[fabianwork](https://sourceforge.net/u/fabianwork/)** wrote on [Monday, March 08, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#e523):

Hello,

Does anyone has an idea for my problem ?

Thank you, regards

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 5, 2010, 9:47am UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/6 "2010-08-05T09:47:46Z")

</div>

**[fabianwork](https://sourceforge.net/u/fabianwork/)** wrote on [Thursday, August 05, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#9f16):

Hello,

Any idea about my problem ?

Thank you.

---

<div class="post-metadata">

**Author:** ![richard-damon](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/richard-damon/32/38_2.png) [@richard-damon](https://forums.freertos.org/u/richard-damon)\
**Post date:** [August 5, 2010, 10:37am UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/7 "2010-08-05T10:37:31Z")

</div>

**[richard\_damon](https://sourceforge.net/u/richard_damon/)** wrote on [Thursday, August 05, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#249c):

Perhaps if you posted more of the code, like the ISR that is filling the queue someone might see something.

Another point would be could the task reading from the queue be too slow and missing most of the characters?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 24, 2010, 2:31pm UTC](https://forums.freertos.org/t/serial-read-freertos-v6-on-coldfire-mcf5213/1679/8 "2010-08-24T14:31:07Z")

</div>

**[fabianwork](https://sourceforge.net/u/fabianwork/)** wrote on [Tuesday, August 24, 2010](https://sourceforge.net/p/freertos/discussion/382005/thread/4d1c5730/#49ce):

Hello! Thank you for the answer.  
Where can I copy/past the ISR to here ?  
The task should no be too slow for the serial COM, it use to work normally with FreeRTOS v3  
Thank you
