Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Problems with flash programming with Openocd
PostPosted: Sat Mar 22, 2008 7:57 pm 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 22, 2008 8:20 pm 
Offline

Joined: Sat Mar 22, 2008 7:45 pm
Posts: 2
By the way, the same binary file is normally uploaded by SAM-BA.


Top
 Profile  
 
 Post subject: Re: Problems with flash programming with Openocd
PostPosted: Thu Mar 31, 2011 11:08 pm 
Offline

Joined: Thu Mar 03, 2011 4:40 pm
Posts: 1
Did you ever find a solution for your problem?


Top
 Profile  
 
 Post subject: Re: Problems with flash programming with Openocd
PostPosted: Fri May 20, 2011 11:48 pm 
Offline

Joined: Fri May 20, 2011 11:39 pm
Posts: 1
[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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron