Instead of putting the functions at specific locations, you can have a
structure of function pointers that you initialize at compile time and for
that structure to be in the information FLASH, then you always know where to
find the structure and the actual function pointers can move within a
segment or groups of segment but their address would always be stored at the
same location.  Let me know ifyou need an example on how to do this.

 

Moussa

 

   _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Frederic
Beaulieu
Sent: Tuesday, March 29, 2005 3:39 PM
To: MSP430 mspgcc Groups
Subject: [Mspgcc-users] Expert needed - How to put functions at specific
address (not specific section)???

 

Hi all,

I try to find a way to put (the start of ) many functions at specific
address within the same section (.text for exemple).

I want to put the “_reset_vector” and main function at fixed address (0x2500
and 0x2600 respectivly n.b. I used a f1612) to be able to find them later.

Is there a way to do it with the compiler and/or the linker???

 

Any help will be appreciated!!!

Fred

-------------------------------

Frederic Beaulieu, M.Sc.

Research and Development

NewTrax Technologies Inc.

HYPERLINK "http://www.newtraxtech.com/"http://www.newtraxtech.com/

 


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 3/27/2005



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.3 - Release Date: 3/25/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.3 - Release Date: 3/25/2005
 

Reply via email to