problem with Olimex ARM-USB-TINY: it hangs after flashing !!

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

rohit123
Posts: 3
Joined: Mon Aug 03, 2009 12:48 pm

problem with Olimex ARM-USB-TINY: it hangs after flashing !!

Sun Aug 09, 2009 1:28 am

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:

Code: Select all

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(): [b]wrote 8496 byte from file main.bin in 0.891000s [/b](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

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 3 guests