EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

How to include a file in IAR

Started by giorgioel January 6, 2010
Hello!
Can anybody suggest me how to include a binary data file in my program created in IAR compiler and then reference it by address?
Thank you in advance,
Giorgio

Beginning Microcontrollers with the MSP430

> Can anybody suggest me how to include a binary data file in my program
> created in IAR compiler and then reference it by address?

Hi Giorgio!

Use the following XLINK command line option:

--image_input=file,symbol,segment,alignment
Put image file in segment at alignment
Define symbol at start

-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.

Thank you Anders!
My Xlink is 4.58C (4.58.3.0) and seems not support this option...
Have I any other chance?

Giorgio
--- In m..., Anders Lindgren wrote:
>
> > Can anybody suggest me how to include a binary data file in my program
> > created in IAR compiler and then reference it by address?
>
> Hi Giorgio!
>
> Use the following XLINK command line option:
>
> --image_input=file,symbol,segment,alignment
> Put image file in segment at alignment
> Define symbol at start
>
> -- Anders Lindgren, IAR Systems
> --
> Disclaimer: Opinions expressed in this posting are strictly my own and
> not necessarily those of my employer.
>

giorgioel wrote:

> Thank you Anders!
> My Xlink is 4.58C (4.58.3.0) and seems not support this option...
> Have I any other chance?

You can try to upgrade either the entire package or just XLink. Later
versions of XLink should be backward compatible, so if you don't want to
upgrade the entire package you can install the kickstart version and use
the XLink of that package.

If you don't want to upgrade, you could write a small stand-along
utility that would take a file and create a C (or assembler) constant
that you could include in your application.

-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.

I am trying to program micro XMS430F5438(test samples supplied from TI), using a parallel jtag interface and IAR V4.2, but I get an error as the chip is not connected(unknown). From the micro side I only have the VCC, gnd and the pins for the Jtag, (TDO,TDI,TMS,TCK, TEST) the reset is pulled up.
Also I selected XMS430F5438 part only in the part selection MENU.
Is there any problem that it could not be programmed through parallel JTAG interface? Do we need to use Spy by wire interface? these are test samples supplied by TI 2 months back. I have used the same schematic connections as used in MSP430F5438 Eval board for JTAG ineterface.
Has any body programmed these microBGA 5438 chips using parallel JTAG ineterface? i.e.MSP-FET430UIF debugger/programmer.

otherwise i would like to use SPY BI WIRE method.

Can any body suggest me what are the SPY BI WIRE
interface connections for programming the XMS430F5438 TI MCU ?

I am using the connection as shown in the attachement. Pl. see the attachment.
An early responce is appreciated.
Thanks & Regards,

SRINIVASU PARUPALLI,
Senior HWEngineer,
Spacelabs Healthcare Solutions.,
HYDERABAD, INDIA.
Email: s...@spacelabs.com;
Ph.No. : +91-040-3980 3600,ext:3603 (off),
+91-9949988668(M),





The 2024 Embedded Online Conference