DSPRelated.com
Forums

Initialization file for FLASH... .CFG?

Started by dougshade December 10, 2002
I was not able to locate any documentation on the Flash Configuration
file that ships with Metrowerks. I'd like to get the details of the
contents clarified. Thanks in advance. -Doug

#-------
# 56838E Initialization File for flash
#-------
set_hfmclkd 0x14 <-The Clock Divisor for the HFM
set_hfm_base 0xFFF400 <-The base address of the HFM
set_hfm_config_base 0x1FFF7 <- ????? what is this ?????

<- ????? can someone please explain all of these fields ????
add_hfm_unit 0x00000 0x1FFFF 0 16 512 1 0 1
add_hfm_unit 0x20000 0x21FFF 0 4 256 1 1 0
add_hfm_unit 0x02000 0x02FFF 1 16 256 0 0 0 <- ????? seems a little odd that things are being set up here... and
not in code....
writexmem16 0xfff323 1

writexmem16 0xfff020 0x0308
writexmem16 0xfff021 0x0038
writexmem16 0xfff022 0x0038
writexmem16 0xfff028 0x07cb
writexmem16 0xfff029 0x03ab
writexmem16 0xfff02a 0x05ab



Doug,

If you are using CodeWarrior for DSP56800E R2.0 (which I assume you
are), all of the commands used in the flash configuration file are
documented in the Targeting_DSP56800E.pdf that is included within the
CodeWarrior installation at:

{install directory}\CodeWarrior Manuals\pdf\

Look in Chapter 7 entitled "Debugging for DSP56800E" and look to the
section within entitled "Debugging in the Flash Memory".

There is also an "about_DSP56800E_init_files.txt" file that is
included at:

{install directory}\M56800E Support\initialization\

which talks about the revision histories a bit and also gives a
little detail regarding what the files do.

I believe most of the stuff in this file are necessary to setup the
processor such that CodeWarrior can program the flash properly.

Hope this info helps!

Regards,
John

--- In , "dougshade <doug.shade@m...>"
<doug.shade@m...> wrote:
> I was not able to locate any documentation on the Flash
Configuration
> file that ships with Metrowerks. I'd like to get the details of the
> contents clarified. Thanks in advance. -Doug
>
> #-------
> # 56838E Initialization File for flash
> #------- >
> set_hfmclkd 0x14 <-The Clock Divisor for the HFM
> set_hfm_base 0xFFF400 <-The base address of the HFM
> set_hfm_config_base 0x1FFF7 <- ????? what is this ?????
>
> <- ????? can someone please explain all of these fields ????
> add_hfm_unit 0x00000 0x1FFFF 0 16 512 1 0 1
> add_hfm_unit 0x20000 0x21FFF 0 4 256 1 1 0
> add_hfm_unit 0x02000 0x02FFF 1 16 256 0 0 0 > <- ????? seems a little odd that things are being set up here...
and
> not in code....
> writexmem16 0xfff323 1
>
> writexmem16 0xfff020 0x0308
> writexmem16 0xfff021 0x0038
> writexmem16 0xfff022 0x0038
> writexmem16 0xfff028 0x07cb
> writexmem16 0xfff029 0x03ab
> writexmem16 0xfff02a 0x05ab