Problems with flash programming with Openocd

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

Moderator: nferre

bmstudeman
Posts: 2
Joined: Sat Mar 22, 2008 7:45 pm

Problems with flash programming with Openocd

Sat Mar 22, 2008 7:57 pm

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:
bmstudeman
Posts: 2
Joined: Sat Mar 22, 2008 7:45 pm

Sat Mar 22, 2008 8:20 pm

By the way, the same binary file is normally uploaded by SAM-BA.
dclermont
Posts: 1
Joined: Thu Mar 03, 2011 4:40 pm

Re: Problems with flash programming with Openocd

Thu Mar 31, 2011 11:08 pm

Did you ever find a solution for your problem?
hgmjr
Posts: 1
Joined: Fri May 20, 2011 11:39 pm

Re: Problems with flash programming with Openocd

Fri May 20, 2011 11:48 pm

[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

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 4 guests