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


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



Relevant Pages

  • Re: To test the Flash
    ... however I don't know anything about the EJDebug tool. ... Using EJDebug emulator i have downloaded the eboot into SDRAM. ... as the location of SDRAM it goes to the Flash start address. ... can download code into the sdram and run it. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: =?ISO-8859-15?Q?G=FCnstiger_Echtzeiteinplatinenrechner?=
    ... einen Einplatinenrechner mit dem Echtzeitbetriebssystem RTOS-UH und den Sprachen C und Pearl vertreiben. ... ohne WLAN und mit 32 MB SDRAM und 64 MB Flash, oder auch 64 MB SDRAM und ... 128 MB Flash. ... Normen einhält, aber man muß sowas ja immer insgesamt testen. ...
    (de.sci.electronics)
  • 128M sdram configuration
    ... Now I want to set the configuration of 128M SDRAM. ... IF IMGFLASH! ... DCD nCS4_BASE_C_VIRTUAL, ... Writing 0x80076BD8 to flash address 0xB8340000. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: =?ISO-8859-15?Q?G=FCnstiger_Echtzeiteinplatinenrechner?=
    ... einen Einplatinenrechner mit dem Echtzeitbetriebssystem RTOS-UH und den ... 180 Euro sind schon recht teuer für das, ... ohne WLAN und mit 32 MB SDRAM und 64 MB Flash, oder auch 64 MB SDRAM und ... 128 MB Flash. ...
    (de.sci.electronics)
  • Re: how to program a flash with the wiggler? (for free)
    ... >> didn't receive a Flash Programmer Utility with it! ... I think the idea is to upload both the flasher and the flash image ... upload the image into my SDRAM because the SDRAM controller isn't ...
    (comp.arch.embedded)