EmbDev.net

Forum: ARM programming with GCC/GNU tools openOCD error


von Kamil B. (kamil51)


Rate this post
useful
not useful
Hello,

I am using olimex arm-usb-ocd jtag inreface and openocd version 1.0 on 
windows 7 x64. All drivers was loaded properly to my PC. And i am using 
uni-ds3 board (mikroelektronika- LPC2148 (12MHz) cpu).Config files that 
i am using like below.When running openocd by using eclipse i am getting 
errors following;
-------------------------openocd console------------------
Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info:    options.c:50 configuration_output_handler(): jtag_speed: 3, 3
Info:    options.c:50 configuration_output_handler(): Open On-Chip 
Debugger 1.0 (2008-10-04-10:00) svn:exported
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f 
(Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0xffffffff 
(Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x007fffff 
(Manufacturer: 0x7ff, Part: 0x07ff, Version: 0x0)
Error:   jtag.c:1399 jtag_examine_chain(): number of discovered devices 
in JTAG chain (547) doesn't match configuration (1)
Error:   jtag.c:1400 jtag_examine_chain(): check the config file and 
ensure proper JTAG communication (connections, speed, ...)
Error:   jtag.c:1556 jtag_init_inner(): trying to validate configured 
JTAG chain anyway...

sysstem is halting here! and LED on the olimex Jtag interface is 
flashing
---------------------------------------------------------
---------------------config file--------------------------
#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0004
jtag_speed 3
jtag_nsrst_delay 200
jtag_ntrst_delay 200

#use combined on interfaces or targets that can't set TRST/SRST 
separately
#reset_config trst_and_srst separate
reset_config trst_and_srst srst_pulls_trst

#jtag scan chain
#format L IRC IRCM IDC  (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
#target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
#target arm7tdmi little run_and_halt 0
target arm7tdmi little run_and_init 0 arm7tdmi-s_r4
run_and_halt_time 0 30

# flash-options LPC2138
#target_script 0 reset C:\arm\yagarto\openocd_lpc2138_flash.script
working_area 0 0x40000000 0x40000 nobackup

#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
--------------------------------------------------------------------
------------------------------script file-----------------------
#
# The following command wills be executed on
# reset (because of run_and_init in the config-file)
# - wait for target halt
# - erase memory
# - flash content of file main.bin into target-memory
# - shutdown openocd
#
# created by Martin Thomas
# http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects
# based on information from Dominic Rath
#

arm7_9 dcc_downloads enable
wait_halt
sleep 10
poll
flash probe 0
flash erase 0 0 0
flash write 0 main.hex 0x0
reset run
sleep 10
shutdown

what does that mean?

Regards

kamil

von Spencer O. (ntfreak)


Rate this post
useful
not useful
My first suggestion would be update openocd - the version you have is 
very old !!

Cheers
Spen

von Kamil B. (kamil51)


Rate this post
useful
not useful
Hello again,

Now, I am using openOCD 0.4.0 version from adress

http://www.freddiechopin.info/index.php/en/download/category/4-openocd

and i installed drivers correctly to my laptop(windows 7 x64) from 
adress

http://www.olimex.com/dev/soft/arm/JTAG/DRIVERS%20(libusb-1.2.2.0,%20CDM20808).zip

no problem in device manager for the drivers loaded.

when i start to openocd from eclips, the messages like below;

----------------------------------------------------------------
Open On-Chip Debugger 0.4.0 (2010-02-22-19:05)
Licensed under GNU GPL v2
For bug reports, read
  http://openocd.berlios.de/doc/doxygen/bugs.html
RCLK - adaptive
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull 
srst_open_drain
Info : RCLK (adaptive clock speed) not supported - fallback to 500 kHz
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787, 
part: 0xf1f0, ver: 0x4)
Info : Embedded ICE version 4
Info : lpc2148.cpu: hardware has 2 breakpoint/watchpoint units
-------------------------------------------------
and system is halting...

i am waiting for your recommendations.

Regards

kamil

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.