DSPRelated.com
Forums

Problem in loading the code to SDRAM...

Started by simha j May 6, 2002

Hello all,

I am using CCS2.0 for C6211 based board(our own board)
and Spectrum Digital Drivers
for XDS510pp PLUS Emulator.

I am facing Problem in downloading my code to SDRAM.
In Our board SDRAM(4MB) is interfaced to CE2
Space(A0000000 - AFFFFFFF)
of 6211 DSP.
I have configured the SDRAM using DSP/BIOS
configuration tool.
When I build a code to Write and read SDRAM locations
and load it to
internal space(IDRAM) of DSP and execute it, it is
working fine.

But When I try to download the code(To write and read
internal Memory of DSP)
to SDRAM, I am getting the following message during
Loading the Program:

" Data Verification Failed at Address A0000400 :
Please check the Memory Map of Target"

The above address corresponds to SDRAM location.

(I have changed the settings in 'MEM Manager'(in
DSP/BIOS) to SDRAM.)

What else I need to care to make it work???

Looking Forward to your Solutions.......




I assume you have changed your init GEL file to setup the EMIF correctly, eg.

init_emif()
{
/*
* First we define the EMIF addresses
*/
#define EMIF_GCTL 0x01800000
#define EMIF_CE1 0x01800004
#define EMIF_CE0 0x01800008
#define EMIF_CE2 0x01800010
#define EMIF_CE3 0x01800014
#define EMIF_SDRAMCTL 0x01800018
#define EMIF_SDRAMTIMING 0x0180001C
#define EMIF_SDRAMEXT 0x01800020
#define EMIF_CCFG 0x01840000; /*Cache configuration register*/

/*
* Now we set the values
*/
*(int *)EMIF_GCTL = 0x00003300; /* EMIF global control register */
*(int *)EMIF_CE0 = 0x00000030; /* CE0-SDRAM */
*(int *)EMIF_CE2 = 0xFFFFFF23; /* CE2-32bit async on daughtercard*/
*(int *)EMIF_CE3 = 0xFFFFFF23; /* CE3-32bit async on daughtercard*/
*(int *)EMIF_SDRAMCTL = 0x07227000; /* SDRAM control register(100 MHz)*/
*(int *)EMIF_SDRAMTIMING = 0x0000061A; /* SDRAM Timing register */
*(int *)EMIF_SDRAMEXT = 0x00054529; /* SDRAM Extension
register */
etc. Andrew E.

At 11:23 PM 5/5/2002 -0700, simha j wrote:

>Hello all,
>
>I am using CCS2.0 for C6211 based board(our own board)
>and Spectrum Digital Drivers
>for XDS510pp PLUS Emulator.
>
>I am facing Problem in downloading my code to SDRAM.
>In Our board SDRAM(4MB) is interfaced to CE2
>Space(A0000000 - AFFFFFFF)
>of 6211 DSP.
>I have configured the SDRAM using DSP/BIOS
>configuration tool.
>When I build a code to Write and read SDRAM locations
>and load it to
>internal space(IDRAM) of DSP and execute it, it is
>working fine.
>
>But When I try to download the code(To write and read
>internal Memory of DSP)
>to SDRAM, I am getting the following message during
>Loading the Program:
>
>" Data Verification Failed at Address A0000400 :
>Please check the Memory Map of Target"
>
> The above address corresponds to SDRAM location.
>
>(I have changed the settings in 'MEM Manager'(in
>DSP/BIOS) to SDRAM.)
>
>What else I need to care to make it work???
>
>Looking Forward to your Solutions....... >
>_____________________________________
>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/c6x
>
>Other Groups: http://www.dsprelated.com >">http://docs.yahoo.com/info/terms/




It is possible that the EMIF is not setup prior to program load.

Make sure to initialize the EMIF with the correct wait states for the SDRAM
prior to loading the program. This EMIF init should be done in the
bootloader (when loading from flash) and by running a GEL init function
prior to downloading with CCS.

THom

-----Original Message-----
From: simha j [mailto:]
Sent: Sunday, May 05, 2002 11:24 PM
To:
Subject: [c6x] Problem in loading the code to SDRAM...
Hello all,

I am using CCS2.0 for C6211 based board(our own board)
and Spectrum Digital Drivers
for XDS510pp PLUS Emulator.

I am facing Problem in downloading my code to SDRAM.
In Our board SDRAM(4MB) is interfaced to CE2
Space(A0000000 - AFFFFFFF)
of 6211 DSP.
I have configured the SDRAM using DSP/BIOS
configuration tool.
When I build a code to Write and read SDRAM locations
and load it to
internal space(IDRAM) of DSP and execute it, it is
working fine.

But When I try to download the code(To write and read
internal Memory of DSP)
to SDRAM, I am getting the following message during
Loading the Program:

" Data Verification Failed at Address A0000400 :
Please check the Memory Map of Target"

The above address corresponds to SDRAM location.

(I have changed the settings in 'MEM Manager'(in
DSP/BIOS) to SDRAM.)

What else I need to care to make it work???

Looking Forward to your Solutions.......
_____________________________________
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/c6x

Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/