My understanding the format of commands has changed and I'm trying to understand how to move forward. Able to use the simple config file: # Change the default telnet port... telnet_port 4444 # GDB connects here gdb_port 3333 # GDB can also flash my flash! gdb_memory_map enable gdb_flash_program enable source [find interface/olimex-arm-usb-ocd.cfg] source [find target/sam7x256.cfg]
Works good, connects, can connect using telnet etc.. 1) how to program flash from the gdb prompt? what are the commands to do this 2) I try the following script and get several errors arm7_9 dcc_downloads enable reset halt wait_halt sleep 10 poll flash probe 0 flash protect 0 0 26 off flash erase 0 0 15 flash write 0 ./RTOSDemo/RTOSDemo.bin 0x0 sleep 10 shutdown > script program.script dcc downloads are enabled JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3) JTAG Tap/device matched srst pulls trst - can not reset into halted mode. Issuing halt after reset. target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x20000093 pc: 0x000000a0 target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x20000093 pc: 0x000000a0 flash 'at91sam7' found at 0x00100000 failed setting protection for areas 0 to 26 (-901) invalid command name "flash_erase" in procedure 'script' called at file "command.c", line 456 called at file "embedded:startup.tcl", line 122 called at file "program.script", line 9 called at file "embedded:startup.tcl", line 89 called at file "embedded:startup.tcl", line 93 > So what I'm I doing wrong? I'm using the r1606 10.05.2009 from YAGARTO _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development