>I wanted to use uart for pooking the data from perticular address
>from the flash and send it back to uart.
I've done this a few times in the past. I wrote:
*A serial comms routine (ISR) that handles the UART and collects received
characters into a buffer
*A command interpreter that processes the buffer and splits the received
string up into commands and arguments, and calls the appropriate command
*A string-to-number conversion routine, so the program can make sense of the
arguments: eg if you type "get 20000000" it will convert the string
"20000000" into the value 0x20000000 in a register somewhere.
*A command that looks up the flash memory at an address determined by the
argument (that 0x20000000 I mentioned above) and sends it out the UART byte
by byte. Usually converting to a hex string instead of sending it raw.
Oh sorry, you wanted a "SIMPLE WAY" :-P Well this is the simplest way
I can
think of doing it that will really work well. The libraries in your
development environment may already contain most of the functions you need.
If you're using C then you might have printf and scanf functions you can
hook up to the UART somehow.
Steve Conner