1 Reply Latest reply on Jun 25, 2015 9:28 AM by userc_40165

    Problems with CY7C65213 when reading UART

      Hello Everybody,


      I hope it's the right forum branch for posting.


      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