Re: how to program a flash with the wiggler? (for free)
From: Arie de Muynck (Sorry_I_hate_spam_at_nomail.com)
Date: 09/08/04
- Next message: Grzegorz Mazur: "Re: HC908 problem with mon08"
- Previous message: Lewin A.R.W. Edwards: "Re: how to program a flash with the wiggler? (for free)"
- In reply to: Erol: "Re: how to program a flash with the wiggler? (for free)"
- Next in thread: Lewin A.R.W. Edwards: "Re: how to program a flash with the wiggler? (for free)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 8 Sep 2004 21:28:52 +0200
"Erol" ...
> I think the idea is to upload both the flasher and the flash image
> into target RAM and then run the flasher.
Yep.
> But my SRAM is not sufficient for the flash image and i think i can't
> upload the image into my SDRAM because the SDRAM controller isn't
> initialized yet at this upload moment. (Can I first load and run a
> startup code to initialize SDRAM and then load the image into SDRAM?)
You can probably use the gdb.ini file to setup the SDRAM controller
registers. It works fine in our Netsilicon CPU, also with SDRAM.
As David Brown suggested, you can also do it in stages.
You would need to write a small tool to chop up the image and glue it with
some base address info after the flash loader.
Automate the whole loading process with a simple tool (even a batchfile
would do) and the difference is minimal.
> It seems that the most reasonable option is to get the image from the
> RS232 port which i don't have at the moment. If the 500$ wiggler SW
> does the same (loading image first into RAM), maybe it isn't useful
> for me anyway because i don't have enough SRAM for flash image
> storage.
Not sure about that. Ask McGraigor ;-)
Well, if you can't spare the UART there is still a nice item in the ARM7TDMI
core called the DCC (Debug Communication Channel).
It is a 32-bit register plus some status bits which can be read and written
with very low overhead by the JTAG, and by the ARM core. It is the perfect
(and fastest) communication channel between a PC-based application and a
small flash routine in the ARM code. Complexity on the ARM side is not more
than a UART.
Unfortunately I have no (open source) JTAG driver for our Raven setup, so we
stuck to the flash + image loader combo.
NOTE: If someone has a tool (prefereably readable open source) to use this
channel through a Chameleon or Raven I would be very interested! Wiggler I
could do myself - if time available (it isn't).
Regards,
Arie de Muynck
- Next message: Grzegorz Mazur: "Re: HC908 problem with mon08"
- Previous message: Lewin A.R.W. Edwards: "Re: how to program a flash with the wiggler? (for free)"
- In reply to: Erol: "Re: how to program a flash with the wiggler? (for free)"
- Next in thread: Lewin A.R.W. Edwards: "Re: how to program a flash with the wiggler? (for free)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|