hi,
I am using a old version of u-boot. It seems like 1.3.2. This version of u-boot has been modified to suit my special board which has no NOR flash.

BTW: I have done a lot of test these days.
1. wiggler: I can "reset" my board with "reset" command. But if I run "reset init" or "reset halt", my board would only reset but not halted. And OpenOCD would told me "timed out" waiting the board halt. But, what the strange thing is, if I just run "halt" command and NOT run any command related to "reset" BEFORE it, my board CAN enter halt status.

2. jlink: I can run "reset", "reset halt", "reset init" command successfully, but I cannot download anything into my board, the DCC error occurred. If I run "arm7_9 dcc_download disable"(maybe the spelling is incorrect, I am not in Linux now) and then tried to debug my u-boot in eclipse, the download progress can finished without any error, but in fact, the program cannot be executed. It always stopped with a SIGNAL. Even I run resume in OpenOCD, it also cannot be executed.

3. I don't know why this happened, but some days before, "reset" command cannot be done if I use wiggler cable to debug my board. There are always some errors when I execute "reset", "reset halt" or "reset init" and my board cannot be reset. But at that time, I can run "halt" command and debug my u-boot in eclipse, the only problem is the "current line" function cannot work property, I mean, the line which highlighted in eclipse is not the line currently run. Maybe you can find this in one of my before email. Maybe this is caused the upgrade of my Debian system?

I apologized for my bad English but I still hope you can understand what I talked about. :)


On 5/22/2011 11:12 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
On 09:17 Thu 19 May     , Lingfeng Xiong wrote:
hi there,
I am trying to debug u-boot on samsung s3c2410 board with OpenOCD and
Eclipse. The initialization script is listed below:
[code]
source [find jlink.cfg]

jtag_khz 500
jtag_nsrst_delay 100
jtag_ntrst_delay 100

source [find samsung_s3c2410.cfg]

$_TARGETNAME configure -event reset-init { up2410_init }
$_TARGETNAME configure -event gdb-attach { reset init }

proc up2410_init { } {
        echo "---------- PLL and SDRAM init start ---------"
        mww 0x11111110 0x48000000
        mww 0x00007FFC 0x48000004
        mww 0x00007FFC 0x48000008
        mww 0x00000700 0x4800000c
        mww 0x00000700 0x48000010
        mww 0x00002E50 0x48000014
        mww 0x00002E50 0x48000018
        mww 0x00018005 0x4800001c
        mww 0x00018005 0x48000020
        mww 0x008c04e9 0x48000024
        mww 0x000000b2 0x48000028
        mww 0x00000030 0x4800002c
        mww 0x00000030 0x48000030
        echo "---------- PLL and SDRAM init done ---------"
}

set _NANDNAME $_CHIPNAME.nand
nand device $_NANDNAME s3c2410 $_TARGETNAME

init
reset init
[/code]

I havn't initialize NOR flash for this board has no NOR flash.
I'll try later on an other arm board with barebox

but which U-Boot are you using?

Best Regards,
J.

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to