EmbDev.net

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


Author: Monk (Guest)
Posted on:

Rate this post
0 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!

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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...

Martin Thomas

Author: Monk (Guest)
Posted on:

Rate this post
0 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...
>

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

Author: Michael Fischer (mifi)
Posted on:

Rate this post
0 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=O...

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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.