Atmel website | ARM Community | AVR freaks | Technical Support
Banner
Welcome to AT91SAM Community Forum
http://www.at91.com/samphpbb/

Problems with flash programming with Openocd
http://www.at91.com/samphpbb/viewtopic.php?f=8&t=4268
Page 1 of 1

Author:  bmstudeman [ Sat Mar 22, 2008 7:57 pm ]
Post subject:  Problems with flash programming with Openocd

Hi!
First of all, sorry for my english, i'm student from Russia.

I have a problem. I want to upload the programm to AT91SAM7S256 controller with Openocd. But when I run script file for flash programming I recieve such messages:

C:\AT91SAM7S\OpenProj>openocd_go_flash
Open On-Chip Debugger (2008-03-01 20:00 CET) svn: 423
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk $
Info: jtag.c:1304 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info: target.c:239 target_init_handler(): executing reset script 'openocd_at91sam7s_flash.script'
Warning: arm7_9_common.c:964 arm7_9_halt(): target was already halted
Info: options.c:50 configuration_output_handler(): dcc downloads are enabled
User: target.c:766 target_arch_state(): target state: halted
User: armv4_5.c:340 armv4_5_arch_state(): target halted in Thumb state due to debug request, current mode: Supervisor
cpsr: 0x000000b3 pc: 0x00200a10
Info: options.c:50 configuration_output_handler(): flash 'at91sam7' found at 0x00100000
Info: options.c:50 configuration_output_handler(): Command write not found
Warning: arm7_9_common.c:724 arm7_9_poll(): DBGACK set, but the target did not end up in the halted stated 1
Info: options.c:50 configuration_output_handler(): Timed out waiting for reset
:shock:
What is it? After this messages the program isn't executed. It would be nice if you could help me. :roll:

Author:  bmstudeman [ Sat Mar 22, 2008 8:20 pm ]
Post subject: 

By the way, the same binary file is normally uploaded by SAM-BA.

Author:  dclermont [ Thu Mar 31, 2011 11:08 pm ]
Post subject:  Re: Problems with flash programming with Openocd

Did you ever find a solution for your problem?

Author:  hgmjr [ Fri May 20, 2011 11:48 pm ]
Post subject:  Re: Problems with flash programming with Openocd

[quote="bmstudeman"]Hi!
First of all, sorry for my english, i'm student from Russia.

I have a problem. I want to upload the programm to AT91SAM7S256 controller with Openocd. But when I run script file for flash programming I recieve such messages:

C:\AT91SAM7S\OpenProj>openocd_go_flash
Open On-Chip Debugger (2008-03-01 20:00 CET) svn: 423
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk $
Info: jtag.c:1304 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info: target.c:239 target_init_handler(): executing reset script 'openocd_at91sam7s_flash.script'
Warning: arm7_9_common.c:964 arm7_9_halt(): target was already halted
Info: options.c:50 configuration_output_handler(): dcc downloads are enabled
User: target.c:766 target_arch_state(): target state: halted
User: armv4_5.c:340 armv4_5_arch_state(): target halted in Thumb state due to debug request, current mode: Supervisor
cpsr: 0x000000b3 pc: 0x00200a10
Info: options.c:50 configuration_output_handler(): flash 'at91sam7' found at 0x00100000
Info: options.c:50 configuration_output_handler(): Command write not found
Warning: arm7_9_common.c:724 arm7_9_poll(): DBGACK set, but the target did not end up in the halted stated 1
Info: options.c:50 configuration_output_handler(): Timed out waiting for reset
:shock:
What is it? After this messages the program isn't executed. It would be nice if you could help me. :roll:[/quote]

Go to your .ocd file and change the line that starts with "flash write" to "flash write_bank" that should get you over this problem.

hgmjr

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/