From: <bar...@ya...> - 2001-07-13 06:46:09
|
Gareth: Thanks for the tips. It provides instant boot up without worrying about external memories. However, I went a step further. Since I am not good at using GDB. I wrote a small procedure in sh-ipl+g and a PC software that talks on serial line. The combination loads a binary file (sh executable file mapped on to part of the cache ram) on to the spare area of the cache ram. Upon completion of downloading the binary, sh-ipl+g jumps to the starting address of the download binary and start executing the file as a procedure. The downloaded binary has to be small enough to fit into the cache ram (it is basically just entry.S and main.c). This binary sets up SDRAM (all neccessary parameters only) and does SDRAM memory read-write test within the requested block then it outputs the results back to PC on serial line. Well, this may sound complex, but it is just a work around for me to avoid using GDB. Thanks for the tip again. Mark. _____________________________________________________________________________ http://messenger.yahoo.com.au - Yahoo! Messenger - Voice chat, mail alerts, stock quotes and favourite news and lots more! |