IÂ'm trying to use serial port in MCB2900 with LPC2919 processor and I couldnÂ't make scanf function to receive data from PC. Is there some code there for my target? IÂ'm looking for it but i havenÂ't seen anything
Oh, come on: nothing - you can't be serious?
What about these: http://www.keil.com/support/man/docs/mcb2900/mcb2900_examples.htm ?
If that's not what you want, then don't just say, "i haven't seen anything" - say what, precisely, it is that you've found so far, and why that doesn't meet your requirements. Otherwise, you won't be taken seriously.
Hint: before messing with scanf (which has many well-known "issues"), are you sure that your basic RS232 transmit and receive codes are working?
Nothing about scanf functions sorry
scanf is a standard 'C' library function - so any 'C' textbook will do!
Also search the forum for "scanf" for the many previous discussions...
But, again, have you tested your basic serial IO before moving on to scanf - or anything else?
Printf is ok, but i am trying to receive data from PC and i couldnÂ't with scanf
But can you do it without scanf?
Obviously, if the basic serial reception isn't working, then nothing higher up the chain - like scanf - can possibly work!
And, again, scanf has a whole pile of issues all of its own - have you done that search yet?
Yes, i have made the scanf code search and i found some, but any code about LPC2919. I have found another processors code with scanf function. I think i have to modify retarget.c file to use scanf. I follow the others target code but in my case does not work.
And what was the consensus about whether scanf was a good thing to use...?
eg, see the 1st reply in this thread: http://www.keil.com/forum/docs/thread7600.asp