Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: IAR Linker Error building C++ example
PostPosted: Wed Dec 07, 2005 2:08 am 
Offline

Joined: Mon Aug 29, 2005 5:57 pm
Posts: 3
Hi, I'm new to the IAR compiler. I'm trying to build a C++ application and I am getting this linker error:

Fatal Error[e72]: Segment INTRAMSTART_REMAP must be defined in a segment definition option (-Z, -b, or -P)

I can't find a reference to INTRAMSTART_REMAP in the documentation. Anyone know what this means?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 9:41 pm 
Offline

Joined: Mon Nov 07, 2005 10:59 pm
Posts: 9
Location: Bloomington, Indiana USA
Looking at the demo project that came with my AT91SAM7S64-IAR kit, the assembly file "Cstartup.s79" contains the following code:
Code:
      PROGRAM   ?RESET
      RSEG   INTRAMSTART_REMAP
      RSEG   INTRAMEND_REMAP

      RSEG   ICODE:CODE:ROOT(2)
      CODE32   ; Always ARM mode after reset   
      org   0   
reset      

After the 'reset' tag, it goes on to contain all of the various reset and interrupt vectors. I think you have to have your C or C++ project referenced by a startup assembly file, which initializes the microcontroller and then calls your main function from your C files.

Does this help?
-t

_________________
AT91SAM7S64-IAR
IAR Embedded Workbench
WinXP Pro SP2


Top
 Profile  
 
 Post subject: Re: IAR Linker Error building C++ example
PostPosted: Wed Jan 27, 2010 11:16 am 
Offline

Joined: Wed Jan 27, 2010 11:00 am
Posts: 3
Hi.
this is first time I work with IAR on SAM7 platform without J-link simulator.
I used sam-ba to port my code to my chip (AT91SAM7S256), but I didn't success. I used IAR embedded workbench then converted output file into binary file and port to ARM chip. But, I didn't success. Someone can give me some advise...
Ths


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: