We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear All,
I am trying to write and read to and from serial port for SBC (ARM9) board in linux able to write data successfully but while reading data from device need carriage return....
if any one have worked on this let us discuss here..
Why?
Isn't it more likely to be a Linux issue than a Keil issue?
yes but some one have worked for arm-linux such issue then I could get some hint from them
But if it's a Linux issue, it would have nothing specifically to do with ARM - so you'd be unnecessarily restricting your audience...
Have you tried looking at standard Linux documentation for some hints...?
It sounds like you are using a "line mode" type of input when you should be using a "character mode" method...
I don't know much about this. But, maybe:
When you are writing something to a file/device with fwrite(), you can use fflush() to push the data stream.
When you are reading something from a file/device with fread(), Operating System controls the buffer for you, if you don't like the OS behavior of buffer control, you have to use the read() system call.