EmbDev.net

Forum: ARM programming with GCC/GNU tools command-line programming utility


von Monk (Guest)


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!

von Martin Thomas (Guest)


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

von Monk (Guest)


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..

von Michael F. (mifi)


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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.