EmbeddedRelated.com
Forums

arm elf to IAR simple-code conversion?

Started by Shannon Holland April 8, 2005
I have a board I'm just starting to bring up (using an AT91SAM7S256) for
which I have an arm-elf executable I'd like to flash using the IAR
J-link tools.

Using the IAR example flasher I can flash the flasher executable itself
so the cpu seems happy enough on my board. But, my code is all build
using arm-elf-gcc and I'd rather not switch to IAR (well, the 32KB limit
will be an immediate killer).

So, for now I'd just like to convert my elf binary to an IAR simple-code
file and then flash that using their code. The simple-code format looks
simple enough but I wanted to ask if there are any conversion utilities
that already exist before I go off and write one...

Or is there a simpler way to program flash using IAR j-link?

I guess I could also modify their flasher app to accept a file over the
debug serial port.

Has anyone done something similar?

Thanks!

Shannon



--- In AT91SAM7@AT91..., Shannon Holland <holland@l...> wrote:
> I have a board I'm just starting to bring up (using an AT91SAM7S256)
for
> which I have an arm-elf executable I'd like to flash using the IAR
> J-link tools.
>
> Using the IAR example flasher I can flash the flasher executable
itself
> so the cpu seems happy enough on my board. But, my code is all build
> using arm-elf-gcc and I'd rather not switch to IAR (well, the 32KB
limit
> will be an immediate killer).
>
> So, for now I'd just like to convert my elf binary to an IAR
simple-code
> file and then flash that using their code. The simple-code format
looks
> simple enough but I wanted to ask if there are any conversion
utilities
> that already exist before I go off and write one...

You can use arm-elf-objcopy to make a binary file from an elf file. It
should be easy to add any IAR headers etc to that.

>
> Or is there a simpler way to program flash using IAR j-link?
>
> I guess I could also modify their flasher app to accept a file over
the
> debug serial port.
>
> Has anyone done something similar?
>
> Thanks!
>
> Shannon




On Apr 8, 2005, at 5:53 PM, embeddedjanitor wrote:

> You can use arm-elf-objcopy to make a binary file from an elf file. It
> should be easy to add any IAR headers etc to that.

Yeah, that looks by far to be the simplest thing. Basic IAR
simple-code headers look really simple.

Thanks!

Shannon