I've been running a 6482 using the -c (ROM Model) and all is well...
I'd like to switch to the -cr (RAM Model) to save memory (the redundant .cinit region). The RAM Model works fine when I load using Code Composer and an emulator, but when I try to generate a srec (for my target platform) using hex6x.exe it does not work.
From looking at the srec file, it appears that the hex6x does not copy the initialization values from .cinit into the .far region. Should hex6x be able to do this? Is there an option I need to turn on?
The User Guide says:
A loader must be able to perform the following tasks to use initialization at load time:
1) Detect the presence of the .cinit section in the object file.
2) Determine that STYP_COPY is set in the .cinit section header, so that it knows not to copy the .cinit section into memory.
3)
Understand the format of the initialization tables.
I think hex6x correctly does steps 1 & 2... but I don't think step 3 is getting done.
thanks,
Brad
FYI... my hex6x cmd file looks like:
..\bin\dsp.out
-m /* S record (S 322) - asii format */
-memwidth 32 /* 32-bit memory */
-order L /* Little Endian */
-map ..\bin\dsp_hex.map /* create a hex map file */
-o ..\bin\dsp.srec
ROMS
{
RAM: org = 0x00800000, len = 0x00200000, romwidth = 32
}