EmbeddedRelated.com
Forums
Memfault Beyond the Launch

How to download BIN file using IAR?

Started by yuzuo1981 July 20, 2006
IAR's flash loader could download SIM file into the internal flash. But
it seems to be that you must have the D79 file either. My progject is
built into Bin file by ADS. And it could be translated to SIM file. But
how to download the sim file without d79 file?

Kidman

What is your ultimate goal? Do you simply want to program new code into the target flash? Or, Do you expect to flash and debug this bin file?

If you want to flash bin files let me suggest SAMBA. Attempting the latter it's futile.

-J.B.
>IAR's flash loader could download SIM file into the internal flash. But
>it seems to be that you must have the D79 file either. My progject is
>built into Bin file by ADS. And it could be translated to SIM file. But
>how to download the sim file without d79 file?
>
>Kidman
>
>
I just want to load the flash with bin file. But the controller I am
using is a Freescale MAC7111. Now I am gathering the imformation what
SAMBA is. But I don't not think it could work on my board (MAC7111EVB +
Winggler + RDI debug agent).

kidman

--- In A..., ratbastard2k3@... wrote:
>
> What is your ultimate goal? Do you simply want to program new code
into the target flash? Or, Do you expect to flash and debug this bin
file?
>
> If you want to flash bin files let me suggest SAMBA. Attempting the
latter it's futile.
>
> -J.B.

Hi,

using a simple C program or script you can convert your bin file to a c
array. Add this array into a C file and compile. Now you have a .d79 and
.sim file that you can download. Maybe you need a main() function and
for sure you need a linker command file. Your array definition should
look like:
__root char somename[] @ start_address = { inicialiser list like: 0x01,
0x22, 0x33, etc... };
(__root makes the linker to link the variable even if it is not referenced.)

Foltos

yuzuo1981 wrote:
> I just want to load the flash with bin file. But the controller I am
> using is a Freescale MAC7111. Now I am gathering the imformation what
> SAMBA is. But I don't not think it could work on my board (MAC7111EVB +
> Winggler + RDI debug agent).
>
> kidman
>
> --- In A..., ratbastard2k3@... wrote:
>
>> What is your ultimate goal? Do you simply want to program new code
>>
> into the target flash? Or, Do you expect to flash and debug this bin
> file?
>
>> If you want to flash bin files let me suggest SAMBA. Attempting the
>>
> latter it's futile.
>
>> -J.B.
>>
>
>
Thanks.
Yesterday I created a project named "a" and added a SIM file
named "a" into it. And I selected the debugger setting "load flash
loader". Then the program could be load into internal flash though
the IAR reported "could not open..." . So the program could be
programmed without D79 file.

Kidman

--- In A..., Foltos wrote:
>
> Hi,
>
> using a simple C program or script you can convert your bin file
to a c
> array. Add this array into a C file and compile. Now you have
a .d79 and
> .sim file that you can download. Maybe you need a main() function
and
> for sure you need a linker command file. Your array definition
should
> look like:
> __root char somename[] @ start_address = { inicialiser list like:
0x01,
> 0x22, 0x33, etc... };
> (__root makes the linker to link the variable even if it is not
referenced.)
>
> Foltos

Memfault Beyond the Launch