EmbDev.net

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


von Rohit C. (rohit123)


Rate this post
useful
not useful
Hi,

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 
tutorial.
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:
1
Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
2
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
3
Info:    options.c:50 configuration_output_handler(): jtag_speed: 2, 2
4
Info:    options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
5
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
6
Info:    jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
7
Info:    target.c:237 target_init_handler(): executing reset script 'sam7flash.script'
8
Info:    options.c:50 configuration_output_handler(): dcc downloads are enabled
9
Info:    options.c:50 configuration_output_handler(): core state: ARM
10
Info:    options.c:50 configuration_output_handler(): flash 'at91sam7' found at 0x00100000
11
Info:    options.c:50 configuration_output_handler(): #0: at91sam7 at 0x00100000, size 0x00040000, buswidth 4, chipwidth 0
12
Info:    options.c:50 configuration_output_handler():   #0: 0x00000000 (0x40000 256kB) protection state unknown
13
Info:    options.c:50 configuration_output_handler(): 
14
at91sam7 information: Chip is AT91SAM7S256
15
cidr: 0x270b0941, arch: 0x0070, eproc: ARM7TDMI, version:0x001,  flashsize: 0x00040000
16
master clock(estimated): 51793kHz 
17
pagesize: 256, lockbits: 16 0x0000, pages in lock region: 64 
18
securitybit: 0,  nvmbits(2): 0x0
19
20
Info:    options.c:50 configuration_output_handler(): cleared protection for sectors 0 through 15 on flash bank 0
21
Info:    options.c:50 configuration_output_handler(): gpnvm bit '#2' is out of bounds for target AT91SAM7S256
22
Info:    options.c:50 configuration_output_handler(): erased sectors 0 through 0 on flash bank 0 in 0.043000s
23
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.

Regards
Rohit

von Rohit C. (rohit123)


Rate this post
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 
reply.

Regards
Rohit

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.