DSPRelated.com
Forums

Unable to load code to extended memory using JTAG! Help!

Started by lindahyang April 12, 2003
I have code that is compiled in far mode, and when I try to download
the code through JTAG Emulator, Code Composer fail to load the code
in the far sections. Please let me know you have any suggestions.
Is there some setting that I am missing.

In c5416.gel, I set PMST_VAL to 0x00A8u to enable DROM.
I am using CCS 2.0 for C5000 series. I am woking with C5416
processors. Using JTAG Emulator form Spectrum Digital (XDS510PP
Plus).

Thanks in advance.

Linda




Ismail,

Thank you for replying. The problem I am having is the code composer quit
when the progress bar is halfway without loading the extended section. I
does not give any error messages. The extended section can be clearly seen
in the map file. I tried to edit the location at far mode section using CCS
and it seem to work. CCS just refuse to load code to that memory section.
Using the a third party tool, the code loads and runs fine, so we don't
think it's the .out file itself.

The following is my settings in gel file. Please let me know if you have
any other suggestions. Thanks a lot!

GEL_XMDef(0, 0x1eu, 1, 0x8000u, 0x7f);
GEL_XMOn();
GEL_MapOn();
GEL_MapReset();

GEL_MapAdd(0x80u,0,0x7F80u,1,1); /* DARAM */
GEL_MapAdd(0x08000u,0,0x8000u,1,1); /* External */
GEL_MapAdd(0x28000u,0,0x8000u,1,1); /* SARAM */
GEL_MapAdd(0x38000u,0,0x8000u,1,1); /* SARAM */

GEL_MapAdd(0x0u,1,0x60u,1,1); /* MMRs */
GEL_MapAdd(0x60u,1,0x7FA0u,1,1); /* DARAM */
GEL_MapAdd(0x08000u,1,0x8000u,1,1); /* DARAM */

Linda

> -----Original Message-----
> From: Ismail Uzun [mailto:]
> Sent: Monday, April 14, 2003 1:21 AM
> To: 'lindahyang'
> Subject: RE: [c54x] Unable to load code to extended memory using JTAG!
> Help! > Hi,
>
> You should define extended memory before loading it. You can do it by
> GEL function. For example, if you would like to use extended memory with
> XPC=2, you can simply add this GEL function in any gel file that you
> will define.
>
> hotmenu XPC22()
> {
> GEL_XMDef(....);
> GEL_XMOn();
> GEL_MapAdd(0x28000,.....);
> }
>
> Ismail >
> -----Original Message-----
> From: lindahyang [mailto:]
> Sent: Saturday, April 12, 2003 6:18 AM
> To:
> Subject: [c54x] Unable to load code to extended memory using JTAG! Help!
>
> I have code that is compiled in far mode, and when I try to download
> the code through JTAG Emulator, Code Composer fail to load the code
> in the far sections. Please let me know you have any suggestions.
> Is there some setting that I am missing.
>
> In c5416.gel, I set PMST_VAL to 0x00A8u to enable DROM.
> I am using CCS 2.0 for C5000 series. I am woking with C5416
> processors. Using JTAG Emulator form Spectrum Digital (XDS510PP
> Plus).
>
> Thanks in advance.
>
> Linda >
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author
> of this message will receive your answer. You need to do a "reply all"
> if you want your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/



Ismail-

Thanks for your help. We had a few problems, but the main thing turns out to be
that
CCS hates linker .cmd file page numbers above 1. For example, in the partial
C5416
.cmd file example below, using "PAGE 2", "PAGE 3", etc. is sudden death: CCS
will
stop loading the program midway through its progress bar with no warning message
or
other indication that it has seen something it doesn't like.

Other COFF file loader software has no trouble with this, but CCS does. If we
keep
everything on PAGE 0/1 but play with the subnames it's Ok.

-Jeff MEMORY {

/* low memory */

PAGE 0: ISR (RWX): origin = 0f00h length = 100h /* isr_code */

PAGE 0: DARAM (RWIX): origin = 1000h length = 100h /* talker */

/* .bss section, .stack, .sysmem (heap) */

PAGE 1: DATA0 (RW): origin = 1200h length = 2100h

/* .text (code) */

PAGE 0: CODE (RWX): origin = 3300h length = 4d00h

/* .const, temp_const, bss2, .data, .buffers */

PAGE 1: DATA1 (RW): origin = 08000h length = 07fe0h

PAGE 2: EXT0 (RWX): origin = 18000h length = 8000h /* not used */

PAGE 3: EXT0 (RWX): origin = 28000h length = 8000h

PAGE 4: EXT0 (RWX): origin = 38000h length = 8000h
} Hanzi Yang wrote:
>
> Ismail,
>
> Thank you for replying. The problem I am having is the code composer quit
> when the progress bar is halfway without loading the extended section. I
> does not give any error messages. The extended section can be clearly seen
> in the map file. I tried to edit the location at far mode section using CCS
> and it seem to work. CCS just refuse to load code to that memory section.
> Using the a third party tool, the code loads and runs fine, so we don't
> think it's the .out file itself.
>
> The following is my settings in gel file. Please let me know if you have
> any other suggestions. Thanks a lot!
>
> GEL_XMDef(0, 0x1eu, 1, 0x8000u, 0x7f);
> GEL_XMOn();
> GEL_MapOn();
> GEL_MapReset();
>
> GEL_MapAdd(0x80u,0,0x7F80u,1,1); /* DARAM */
> GEL_MapAdd(0x08000u,0,0x8000u,1,1); /* External */
> GEL_MapAdd(0x28000u,0,0x8000u,1,1); /* SARAM */
> GEL_MapAdd(0x38000u,0,0x8000u,1,1); /* SARAM */
>
> GEL_MapAdd(0x0u,1,0x60u,1,1); /* MMRs */
> GEL_MapAdd(0x60u,1,0x7FA0u,1,1); /* DARAM */
> GEL_MapAdd(0x08000u,1,0x8000u,1,1); /* DARAM */
>
> Linda
>
> > -----Original Message-----
> > From: Ismail Uzun [mailto:]
> > Sent: Monday, April 14, 2003 1:21 AM
> > To: 'lindahyang'
> > Subject: RE: [c54x] Unable to load code to extended memory using JTAG!
> > Help!
> >
> >
> > Hi,
> >
> > You should define extended memory before loading it. You can do it by
> > GEL function. For example, if you would like to use extended memory with
> > XPC=2, you can simply add this GEL function in any gel file that you
> > will define.
> >
> > hotmenu XPC22()
> > {
> > GEL_XMDef(....);
> > GEL_XMOn();
> > GEL_MapAdd(0x28000,.....);
> > }
> >
> > Ismail
> >
> >
> >
> > -----Original Message-----
> > From: lindahyang [mailto:]
> > Sent: Saturday, April 12, 2003 6:18 AM
> > To:
> > Subject: [c54x] Unable to load code to extended memory using JTAG! Help!
> >
> > I have code that is compiled in far mode, and when I try to download
> > the code through JTAG Emulator, Code Composer fail to load the code
> > in the far sections. Please let me know you have any suggestions.
> > Is there some setting that I am missing.
> >
> > In c5416.gel, I set PMST_VAL to 0x00A8u to enable DROM.
> > I am using CCS 2.0 for C5000 series. I am woking with C5416
> > processors. Using JTAG Emulator form Spectrum Digital (XDS510PP
> > Plus).
> >
> > Thanks in advance.
> >
> > Linda