how to initial SDRAM on SMDK2410+OpenOCD?

I used OpenOCD+parrel port JTAG cable linked to SMDK2410.

the openocd can detected my S3C2410 and displayed :


C:>openocd -f interface/parport.cfg -f target/samsung_s3c2410.cfg

Open On-Chip Debugger 0.1.0 (2009-01-21-21:15) Release

BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

$URL: https://kc8apf@svn.berlios.de/svnroot/r … -0.1.0/src

/openocd.c $

jtag_speed: 0

fast memory access is enabled

dcc downloads are enabled

Info : JTAG tap: s3c2410.cpu tap/device found: 0x0032409d (Manufacturer: 0x04e,

Part: 0x0324, Version: 0x0)

Error: JTAG tap: s3c2410.cpu got: 0x0032409d (mfg: 0x04e, part: 0x03

24, ver: 0x0)

Error: JTAG tap: s3c2410.cpu expected 1 of 1: 0xffffffff (mfg: 0x7ff, part: 0xff

ff, ver: 0xf)

Error: trying to validate configured JTAG chain anyway…

Warn : no tcl port specified, using default port 6666

Warn : DBGACK set while target was in unknown state. Reset or initialize target.

target state: halted

target halted in ARM state due to breakpoint, current mode: Supervisor

cpsr: 0x200000d3 pc: 0x3100045c

MMU: disabled, D-Cache: disabled, I-Cache: disabled


and then I compile a elf image and telnet the openocd server:

telnet localhost 4444

load_image mmu_elf 0x0

DCC write failed, expected end address 0x00000148 got 0x0

Runtime error, file “command.c”, line 456:

Is seems can’t write to address 0x000,

Maybe the SDRAM or PLL didn’t initial properly.

anyone can provide a config script for initialing SDRAM in SMDK2410?

hi,

i too faced the same problem and i have found a way to initialize the SDRAM.

if u have already found a solution to the problem then u can post the details here which in a way will be helpful (i too can try it out).

if not, then i shall giv the config file for initializing the SDRAM.

Hi,

As I can see, you try to load an ram image at 0x0.

Yet, the SDRAM is located at 0x30000000 as the MMU is not activated.

Also, I do not have read the conf file, but as far I know, this conf file doesn’t configure any neither the PLL nor the SDRAM controller.

So, for your matter :

in the conf file, you can use the new syntax of openocd in order not to have the warning message about the unknown CPU :

jtag_khz 5

jtag newtap SAMSUNG CPU -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x0032409d

Don’t forget to increase the jtag_speed only after you configured the PLL, as the jtag_speed must be lower than 1/6 of the CPU frequency.

Then configure PLLs and SDRAM controller. I may be able to help you for this part if you wish !

Tophe