06-15-2020 05:44 AM
I am trying to user uart in interrupt mode.I have taken the uart_itnr.c example. I am able to run the example . Then i kept uart in normal mode. My target is send some 200 Bytes of data and store in buffer. FIFO size is configured for 8 bytes size. Whenever i am sending some data , i am able to hit breakpoint in handler part. But I am not getting how to store the data in some local buffer. I am attaching my code. Please guide me
Thanks & Regards
06-16-2020 03:32 AM
If you want to store 8 bytes only you can create a 8 byte array and fetch the data into that array every time as a local variable.
otherwise if you are willing to store 200 bytes data use static buffer locally of size 200 and track number of bytes filled in the fifo or as a index you can use static variable so that you can track the number of bytes received and data as well.
06-16-2020 04:39 AM - edited 06-16-2020 09:15 PM
Thanks. I am able to do this.
But if i am sending 8 byte of data (my fifo threshold size is 8 and