Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

Discussion Groups | TMS320C54x | Unable to load code to extended memory using JTAG! Help!

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

Unable to load code to extended memory using JTAG! Help! - lindahyang - Apr 12 3:18:00 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






(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

RE: Unable to load code to extended memory using JTAG! Help! - Hanzi Yang - Apr 14 6:51:00 2003

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 >
>
> _____________________________________





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: Unable to load code to extended memory using JTAG! Help! - Jeff Brower - Apr 14 17:04:00 2003

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





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )