openocd at91sam7s256 flash download

hello Dominic / Michael,

i had changed my target board and arm-usb-ocd device too. and fortunately this i succeeded in establishing the communication between the target and the JTAG interface.

target board is “olimex SAM7-Pxxx” having AT91SAM7s256 processor core.

JTAG device - arm-usb-ocd / IDE-Eclipse / compiler- GNUARM

config. file is “sam7-armusbocd.cfg”

script file is “sam7flash.script”

now when i’m trying download the demo_flash… sample code with the help of "Build MAKE " utility following message arrives.

make -k program

“Preparing OpenOCD script…”

“Flash Programming with OpenOCD…”

'C:\GCCFD\openocd-2007re131\bin'openocd-ftd2xx.exe -f 'C:\GCCFD\openocd-2007re131\bin'sam7-armusbocd.cfg

Info: openocd.c:84 main(): Open On-Chip Debugger (2007-01-31 12:00 CET)

Warning: arm7_9_common.c:683 arm7_9_assert_reset(): srst resets test logic, too

Warning: jtag.c:1068 jtag_read_buffer(): value captured during scan didn’t pass the requested check: captured: 0x0f check_value: 0x01 check_mask: 0x0f

Error: ft2232.c:205 ft2232_read(): FT_Read returned: 4

Error: ft2232.c:369 ft2232_send_and_recv(): couldn’t read from FT2232

make: *** [program] Error 255

the script file looks like:

wait_halt

armv4_5 core_state arm

flash probe 0

flash erase 0 0 0

flash protect 0 0 1 off

flash write 0 main.bin 0x0

mww 0xfffffd08 0xa5000401

could you help me to get rid of these errors ??

Best Regards,

Mayur

Hello Mayur,

You say this time you “succeeded in establishing the communication between the target and the JTAG interface.” - does the error below only occur when you’re trying to flash?

The FT_Read call fails with FT_IO_ERROR:

“A return value of FT_IO_ERROR suggests an error in the parameters of the function, or a fatal error like USB disconnect has occurred.”

The parameters passed to the function are certainly fine, and I can only speculate what fatal error might have occured. If you’re already using a self-powered hub, try using the old arm-usb-ocd - at least the USB communication worked fine according to your old logs.

Regards,

Dominic

@Mayur:

I had similar problem the a FT2232L. What version (FT2232C/L/D) are u using?

You can try to plug a USB hub between your PC and the FT2232. I my case it removed the error.

regards

Joern

http://www.joernonline.de/dw/doku.php?i … leshooting