Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > UART Receive data incorrect (sometimes)

Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



UART Receive data incorrect (sometimes)

Summary: 8587 Views, 3 Replies, Latest reply by kiku on 14 Jan 2011 01:03 AM PST

Verified Answers: 0

Post Reply


Swys posted on 10 Dec 2010 6:18 AM PST
Member
5 Forum Posts

 Hi all,

 

I have a problem with the UART on the PSoC 5 and the CY8CKIT-001 development kit. What I am doing, is sending (Modbus) data via a serial to USB cable from the PC to the device. When using Realterm to send the data packet to the device, everything works fine, every time. However, if I send the data packet from a C# app using the .net SerialPort class, some bytes get scrambled at the device side. This does not happen every time, but actually most of the time. I used the same C# app on a PIC Modbus devce that I built, and it works fine every single time.

 

I actually resorted to go to Java, using the RXTX library to send the Modbus packet to the device. However, the same happens from the Java app.

 

How can this be, that the data gets to the device correctly when I am using Realterm, but when I am using any other custom app, some bytes get scrambled?

Please help me with this



 

Swys posted on 11 Jan 2011 02:26 AM PST
Member
5 Forum Posts

I also ran the same C# app to query a PIC micro of mine with great success (every time).

 

 Isn't there anyone (maybe from Cypress?) who can please help me with this?


Cypress Customer posted on 12 Jan 2011 09:17 AM PST
Top Contributor
99 Forum Posts

That does seem odd.  I'll talk to one of our application engineers, but I think we might need to move this case over to our technical support tool.  That will allow us to have a one-on-one dialog and potentially share project files back and forth.

 

-Bobby


kiku posted on 14 Jan 2011 01:03 AM PST
Cypress Employee
66 Forum Posts
Hi, Yes. Can you please create a Tech Support case on this issue as we may require to debug your code. You can create a case by Design Support -> Tech Support -> Create a Case -> Create a Case -> Select "Technical Support" -> Enter the details of your issue, attach your project and click CreateMyCase. Regards, Kishore.

 

Post Reply






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20