Rstricting address spaces with IAR XLINK output

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there

I'm using the IAR compiler and have a project in which I use some EEPROM memory. The output format I'm using is intel-standard. I'm trying to get the linker to spit out two hex files one for CODE and one for XDATA which is the segment EEPROM memory gets placed.
The XLINK manual says to to use:
-Ointel-standard,(CODE)=filename
but this gives the following error:

syntax error near unexpected token '-Ointel-standard,(C'

I'm also using variant 0 for the output format which is given as:
-Ointel-standard,0=filename

This must have been done may times but i'm unable to locate anything which yields clues as to the correct syntax to produce an intel-standard out file using variant '0' and restricted to a single memory space.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Update
It would appear that intel-standard,(CODE) works if placed in the linker command file rather than in the command line being called in the make file.

I still can't find a way to specify variant 0 for the intel-standard format as AVR Studio complains about loading the hex file when no variant is specified. If no variant is given XLINK adds the line :00000101FF to the bottom of the hex file which failes the checksum check.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What do IAR say? - the $3,000 you paid them has to be worth something!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm using a work-around and changed intel-standard to intel-extended which does not require any special variant to be specified. Still seems silly to have to specify the -O options in a separate file when specifying the CODE or XDATA options.

I'll contact IAR and let you know what they say and see what we get for paying all that money plus a heafty annual subscription fee too!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Request submitted to IAR at 11:40am NZ time. I'll let you know when I have a suitable response from them and what our money gets us.