You are here

Problems with CY7C65213 when reading UART | Cypress Semiconductor

Problems with CY7C65213 when reading UART

Summary: 1 Reply, Latest post by Madhu Sudhan on 25 Jun 2015 12:48 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
alexunder's picture
2 posts

Hello Everybody,

Sorry for posint twice - I found that this forum is more relevant to my problem.

I'm working with CYUSBS232 USB-UART LP Reference Design Kit which has CY7C65213 part installed . I've made a program in MS VIsual C++ 2008 that succesfully reads device parameters, opens device, operates GPIO pins and sends the data through UART via CyUartWrite(). However, when I want to read the data from UART and thus I call CyUartRead() API's function a breakpoint/exception is generated saying something about heap corruption (can't cite the exact message). Intrestingly, this doesn't happen if there's some data received in the input buffer - CyUartRead() returns CY_SUCCESS with correct data reading. I believe this is not a normal behaviour of CyUartRead(): in case of no data received it should simply CY_ERROR_IO_TIMEOUT saying timout has been reached.

Does anyone had similar problem? Any suggestions?

Thanks in advance

mady's picture
Cypress Employee
964 posts

 Duplicate Post: 

Pls refer


-Madhu Sudhan

Log in to post new comments.