Forum: ARM programming with GCC/GNU tools OpenOCD hangs while using olimex ARM-USB-TINY

von Rohit C. (rohit123)

Rate this post
0 useful
not useful

I recently received Olimex AT91SAM7S256 board and openOCD ARM-USB-TINY.
I executed Olimex-GCCFD-20081015.exe which came along with the CD.
I have successfully installed the USB-TINY although it asked to install 
just two times opposed to three times described in Peter Lynch's 
But i checked in device manager it shows two entries:
1.Olimex Open OCD JTAG TINY
2.Olimex Open OCD JTAG TINY Interface

I selected project named sam7p256-flash-usb which is designated for the 
board I am using. I was able to build the project without any error.

But I am unable to flash it via ARM-USB-TINY. The debugger seem to hang 
after executing following commands:
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: 2, 2
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: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info:    target.c:237 target_init_handler(): executing reset script 'sam7flash.script'
Info:    options.c:50 configuration_output_handler(): dcc downloads are enabled
Info:    options.c:50 configuration_output_handler(): core state: ARM
Info:    options.c:50 configuration_output_handler(): flash 'at91sam7' found at 0x00100000
Info:    options.c:50 configuration_output_handler(): #0: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
Info:    options.c:50 configuration_output_handler():   #0: 0x00000000 (0x40000 256kB) protection state unknown
Info:    options.c:50 configuration_output_handler(): 
at91sam7 information: Chip is AT91SAM7S256
cidr: 0x270b0941, arch: 0x0070, eproc: ARM7TDMI, version:0x001,  flashsize: 0x00040000
master clock(estimated): 51793kHz 
pagesize: 256, lockbits: 16 0x0000, pages in lock region: 64 
securitybit: 0,  nvmbits(2): 0x0
Info:    options.c:50 configuration_output_handler(): cleared protection for sectors 0 through 15 on flash bank 0
Info:    options.c:50 configuration_output_handler(): gpnvm bit '#2' is out of bounds for target AT91SAM7S256
Info:    options.c:50 configuration_output_handler(): erased sectors 0 through 0 on flash bank 0 in 0.043000s
Info:    options.c:50 configuration_output_handler(): wrote 8496 byte from file main.bin in 0.891000s (9.311869 kb/s)

After the last line in above console message the red LED on the 
ARM-USB-TINY keeps on blinking and one of the LED on the dev board 
becomes permanently ON.
To me it seems its flashing data to chip but is not able to come out....

I have tried all the three USB ports on my Vista Laptop to connect to 
debugger but in vain.

Has anybody used this board from olimex? Please reply.


von Rohit C. (rohit123)

Rate this post
0 useful
not useful
Hi folks,

I worked with a reinstall. I uninstalled all the software and then 
reinstalled it. Although after executing Olimex-GCCFD-20081015.exe
Vista informed that software did not install properly. Last time I 
ignored that warning.So this time I selected option to reinstall and 
this it took more time than usual.

Finally after reinstallation, I selected sam7p256-flash-usb in project 
folder, built it and started debugger. It nicely flashed and I was able 
to debug the software !!!!!!!!!!!

Later I changed the main.c to blink bothe the LED's on the Olimex board.
And it worked fine !!!!

But I still have problem in using the debugger only for flashing. I 
think some scripts supplied are not up to date. Because it was asking 
for some file which does not exist at all. I am not near my test setup 
to give exact details. But some configuration file starting with 
ftdi.........cfg is missing. Anybody faced the same problem then please 



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.