command-line programming utility

Guest #1172026
Rate this post
• ▲ useful
▼ not useful
Hi all.

I hope you could help me. I need to find an utility which can download
(program) my .elf file to the hardware via JTAG (Wiggler).

Right now only possibility I have is to download using CrossWorks
Studio. But it doesn't really comfortable to program hundreds of devices
using GUI.. so I need to find something for command-line.

I have installed WinARM but it seems that there is no such program in
this kit. :( Or I have just missed it..

Thank you!
Guest #1172027
Rate this post
• ▲ useful
▼ not useful
Monk wrote:
> I hope you could help me. I need to find an utility which can download
> (program) my .elf file to the hardware via JTAG (Wiggler).
>
> Right now only possibility I have is to download using CrossWorks
> Studio. But it doesn't really comfortable to program hundreds of devices
> using GUI.. so I need to find something for command-line.
>
> I have installed WinARM but it seems that there is no such program in
> this kit. :( Or I have just missed it..

Which target? Search for OpenOCD which supports flash-programming for
various targets/families. If your target is supported: Use objcopy to
extract the machine-code from the elf-file into a "binary"-format file
(see the GNU binutils documentation). Transfer the content of the
binary-file with OpenOCD and the "Wiggler" to the target. Maybe useful:
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/openocd_intro/index.html

Martin Thomas
Guest #1172028
Rate this post
• ▲ useful
▼ not useful
Martin Thomas wrote:

> Which target? Search for OpenOCD which supports flash-programming for
> various targets/families. If your target is supported: Use objcopy to
> extract the machine-code from the elf-file into a "binary"-format file
> (see the GNU binutils documentation). Transfer the content of the
> binary-file with OpenOCD and the "Wiggler" to the target. Maybe useful:
> 
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/openocd_intro/index.html
>

my target is str711. it seems that OpenOCD supports it. Unfortunately
I've overlooked it several times because everyone refers to this program
just as "debugger", and rarely someone notes that it has programming
ability, while I don't need a debugger.

thank you. Now I am in the middle of not-so-simple quest trying to
figure out what to write in configs and scripts of OpenOCD to make it
program my target properly..
#1172029
Rate this post
• ▲ useful
▼ not useful
Hello Monk,

> thank you. Now I am in the middle of not-so-simple quest trying to
> figure out what to write in configs and scripts of OpenOCD to make it
> program my target properly..

Take a look here:

http://openfacts.berlios.de/index-en.phtml?title=OpenOCD_scripts

Here you will find some examples for the config files.
In the moment the server has some problems, Try it again later.

Or take a look here:

http://www.yagarto.de/howto/openocd/index.html

Here you can find a str7xx_pp.cfg file.
http://www.yagarto.de/download/openocd/str7xx_pp.cfg
I used this cfg only to debug in RAM, never try to
download into flash.

Best regards,

Michael

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.