[En-Nut-Discussion] OT: openocd config for Olimex sam7-ex256

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Mon Jul 9 00:02:05 CEST 2007


> yep , i'd be interested  Ole

Here is my config:

#daemon configuration
telnet_port 4444
gdb_port 3333

interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG TINY"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15ba 0x0004 

jtag_speed 0
jtag_nsrst_delay 200
jtag_ntrst_delay 200

#reset_config <signals> [combination] [trst_type] [srst_type]
reset_config srst_only

#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
target arm7tdmi little reset_halt 0 arm7tdmi

#run_and_halt_time <target#> <time_in_ms>
run_and_halt_time 0 30

flash bank at91sam7 0 0 0 0 0

What else do you need to know:

 - You could also use sam-ba. To use it close the erase jumper. Now the
   board will boot in sam-ba mode. (for simple file upload samba is
   simpler than openocd)
 - After a full erase you have to set the GPNVM bit 2 to boot from flash
   and _not_ into sam-ba mode (from rom)
 - to erase the flash: flash erase 0 0 15
 - to write a binary into flash: flash write 0 my_program.bin 0
 - other simple usefull commands: reset / halt / resume
There is some more work needed on NutOS to fully support the board. At
least the config for the at91_emac driver needs to be modified like

PHY Address: 1
PHY Power down bit 18
PHY Power down polarity

Than you still need to patch the mac driver a little bit. See: 


Hope this will help you. For me it took some time to bring the httpd
demo up and running.

Best regards,

Ole Reinhardt
kernel concepts GbR             Tel:   +49-271-771091-14
Inh. Faerber & Kirchner         Fax:   +49-271-771091-19
Sieghütter Hauptweg 48          Mobil: +49-177-7420433
D-57072 Siegen                  UstID: DE 205 648 898

More information about the En-Nut-Discussion mailing list