cancel
Showing results for 
Search instead for 
Did you mean: 

loosing byte at uart receiving

gerald2399
Associate II
Posted on August 25, 2009 at 08:46

loosing byte at uart receiving

3 REPLIES 3
gerald2399
Associate II
Posted on May 17, 2011 at 15:04

Hello,

I'm using a STM8S105S6 with a UART communication. Baudrate is 9600. If I send a data stream to my controller from PC and every data byte of my stream is incremented by one, everything works well. I can receive all the 117 bytes of the data stream.

If I try to send a data stream with almost all bytes are 0x00, a lot of bytes of my datastream are not received by my controller. (about 20 bytes are missing).

Does anybody know the reason for that?

Thank you for help!

gb

mozra27
Associate II
Posted on May 17, 2011 at 15:04

Hi Gerald,

What are the receiver type (Controller) and the toolchaine (IDE+Compiler)used in your application?

Can you please check the same test without optimization?

Thank you to keep us informed by the test result.

Regards

mozra

gerald2399
Associate II
Posted on May 17, 2011 at 15:04

Hi,

I'm using the ST Visual Develop V4.1.2.

Help window:

STVD MainFrame Version 3.6.3.1 - Build May 6 2009

stvabbld.dll, Version: 1.3.3.0

stv7abbld.dll, Version: 1.4.2.0

STVD_TxtEditor.dll, Version: 1.0.2.5

addonide.ini, Version: Rel 4.0, Date: 19 February 2008

ProgrammerAddOn.dll, Version: 1.3.0.1

st7expor.dll, Version: 3.3.2.1

The toolchain is Raisonance. I use Rlink and our target board.

With default optimazation (no optimazation) even more bytes are missing (about 50).

The device is STM8S105S6 Uart_2.

I hope this inforamtion helps.

Thank you

gb