--- Jonathan McDowell noodles@earth.li wrote:
On Sat, Jan 28, 2006 at 01:09:06AM +0000, David Given wrote:
On Friday 27 January 2006 23:16, Jonathan McDowell wrote: [...]
I haven't looked at the code, but my notes say NOR flash is at 0x0, SDRAM is at 0x10000000 and SRAM is at 0x20000000.
That's different from the E2. Do you know if the jump-to opcode works on the E2's version of pbl? Because while pblq can write to RAM and flash, it can't execute anything.
I believe you can jump to code in SRAM, but not SDRAM. So you'd load your kernel into SDRAM, load a small piece of setup code into SRAM and jump to that. It would setup registers as appropriate and jump to the kernel.
J.
Thanks for the help. I can now write my program to my RAM (both SRAM & SDRAM) and have read back the contents and it match's what I have written :-). I have implemented the exec function so I _should_ now be able to run my own program on my E3. However, I have written a few simple assember programs and haven't seen any life from them (no UART output). I have tested the exec code by reading some data from the E3 and then running pbl exec 0x00000000 which starts the unit booting, so unless the have changed to byte order of the address that you need to pass to pbl for the exec the only thing I can think is wrong is my test program (my ARM assembly is a bit rusty :-( ).
I have attached both my modifed pbltool and my latest test program. Any pointers would be great. If anyone has got some standalone code to run on the E3 please could you send me it so I can try it out.
Mark
-- Ever notice how fast Windows runs? Neither did I...
e3-hacking mailing list e3-hacking@earth.li http://www.earth.li/cgi-bin/mailman/listinfo/e3-hacking
___________________________________________________________ Yahoo! Photos NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com