[E3-hacking] Adding write support to pbltool

Mark Underwood basicmark at yahoo.com
Sat Jan 28 16:24:52 GMT 2006

--- Jonathan McDowell <noodles at 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. 

> -- 
>           Ever notice how fast Windows runs? Neither did I...
> > _______________________________________________
> e3-hacking mailing list
> e3-hacking at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbltool.c
Type: text/x-csrc
Size: 10117 bytes
Desc: 1631447447-pbltool.c
Url : http://www.earth.li/pipermail/e3-hacking/attachments/20060128/5e0d6c43/pbltool.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uart_hi.S
Type: application/octet-stream
Size: 1002 bytes
Desc: 3318163205-uart_hi.S
Url : http://www.earth.li/pipermail/e3-hacking/attachments/20060128/5e0d6c43/uart_hi.obj

More information about the e3-hacking mailing list