Hello,

  I tried to upload a binary file to arm without success. I had already
uploaded successfully using parport, but now I have no more parport on
my notebook and tried using Olimex arm-usb-ocd.

  I tried with:
   * openocd ubuntu hardy package (came from svn r211)
   * openocd ubuntu intrepid package (came from svn r655)
   * fresh openocd, build by myself from svn r930

  At my best try, it could communicate with the arm7, but I got the
following messages on the screen:
Info:    options.c:50 configuration_output_handler(): Command probe not
found
Info:    options.c:50 configuration_output_handler(): Command erase not
found
Info:    options.c:50 configuration_output_handler(): Command write not
found

  I read openocd wiki and it shows that lines like "flash erase 0 0 4"
or "flash probe 0" are valid script lines...

  Can you help me about how fix this issue? configuration and script
file follows.

  I tried to search in
https://lists.berlios.de/mailman/listinfo/openocd-development for
answers before posting, however there is no search tool.

  Thanks in advance.
  Pedro

--- config ---
telnet_port 4444
gdb_port 3333
interface ft2232
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15ba 0x0003
jtag_speed 3
jtag_nsrst_delay 200
jtag_ntrst_delay 200
reset_config trst_and_srst srst_pulls_trst
jtag_device 4 0x1 0xf 0xe
daemon_startup reset
target arm7tdmi little run_and_init 0 arm7tdmi
run_and_halt_time 0 30
target_script 0 reset str711.script
working_area 0 0x2000C000 0x4000 nobackup
flash bank str7x 0x40000000 0x00040000 0 0 STR71x 0

--- script ---
arm7_9 dcc_downloads enable
wait_halt
sleep 10
poll
flash probe 0
erase first 5 banks (0-4)
flash erase 0 0 4
flash write_binary 0 main.bin 0x0
reset run
sleep 50
shutdown

--- full messages ---
Open On-Chip Debugger 1.0 (2008-08-19-05:32) svn:exportado
$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-08-19-05:32) svn:exportado
Error:   str7x.c:188 str7x_flash_bank_command(): unknown STR7x variant: '0'
Error:   flash.c:270 handle_flash_bank_command(): 'str7x' driver
rejected flash bank at 0x40000000
Info:    jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info:    jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info:    target.c:237 target_init_handler(): executing reset script
'openocd_str710_flash.cfg'
Info:    options.c:50 configuration_output_handler(): dcc downloads are
enabled
User:    target.c:953 target_arch_state(): target state: halted
User:    armv4_5.c:304 armv4_5_arch_state(): target halted in ARM state
due to debug request, current mode: User
cpsr: 0x60000010 pc: 0x000010d4
Info:    options.c:50 configuration_output_handler(): Command probe not
found
Info:    options.c:50 configuration_output_handler(): Command erase not
found
Info:    options.c:50 configuration_output_handler(): Command
write_binary not found
Info:    jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Warning: arm7_9_common.c:712 arm7_9_poll(): DBGACK set, but the target
did not end up in the halted stated 1
User:    target.c:435 target_process_reset(): Timed out waiting for halt
after reset

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to