Hi pplz,
I’m running a openocd interactively in a telnet session and when i type flash info 0 i get “Command info not found”.
I’ve tried other commands and they seem to work.
Is this a bug in openocd?
Any help would be greatly appreciated.
Hi pplz,
I’m running a openocd interactively in a telnet session and when i type flash info 0 i get “Command info not found”.
I’ve tried other commands and they seem to work.
Is this a bug in openocd?
Any help would be greatly appreciated.
Hi
What version are you using.
Can you post your configuration file.
Regards,
magnus
Hi Magnus,
I’m running openocd-2006re115
The following is the configuration file that i’m using.
It’s the one from the “Using Open Source Tools for AT91SAM7S Cross Development” guide.
I’m flashing via the Olimex ARM-USB-OCD.
#define our ports
telnet_port 4444
gdb_port 3333
#commands specific to the Amontec JTAGKey
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003
jtag_speed 2
jtag_nsrst_delay 200
jtag_ntrst_delay 200
#reset_config <signals> [combination] [trst_type] [srst_type]
reset_config srst_only srst_pulls_trst
#jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
jtag_device 4 0x1 0xf 0xe
#daemon_startup <'attach'|'reset'>
daemon_startup reset
#target <type> <endianess> <reset_mode> <jtag#> [variant]
target arm7tdmi little run_and_init 0 arm7tdmi_r4
#run_and_halt_time <target#> <time_in_ms>
run_and_halt_time 0 30
Hi
You must also specify the flash memory configuration in the configuration file.
For the AT91SAM7S this is the line:
A working area is also useful for some OpenOCD commands:flash bank at91sam7 0 0 0 0 0
working_area 0 0x40000000 0x40000 nobackup
Regards,
Magnus
Still doesn’t work with the flash memory configuration.
However i made an interesting discovery.
I uninstalled the tool chain that i was using (Yagarto) and instead of
reinstalling the same one i installed the tool that is on the CD that
came with the Olimex ARM-USB-OCD -
“ARM GCC for Windows Dummies”.
Funnily enough, the “flash info 0” command worked!
What was also surprising is that the OpenOCD is an older version.
How could this be?
Can someone explain to me what is going on?