Pumpkin, Inc.

Pumpkin User Forums

Memory model related linking error

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

Memory model related linking error

Postby alex » Wed Jul 23, 2008 3:22 am

I have the follwoing link time error

Error [e117]. "Incompatible runtime models.Module salvoqdel
specifies that "__data_model" must be 'small'
but module xxx has the value 'medium'

It appears that it has to do with my code having the following statement

#pragma segment="seg_name" __data20

declaration because it requires "long" pointers.

Is there way to handle the above error still
having 'medium' memory model for the project?

Thanks

alex
 
Posts: 3
Joined: Sun Jul 20, 2008 11:00 pm

Re: Memory model related linking error

Postby aek » Wed Jul 23, 2008 7:42 am

Memory models must be consistent across all components.

If you can't use an MSP430X Salvo Library, then you'll need to do a Pro source-code build (no libraries).

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Memory model related linking error

Postby alex » Thu Jul 24, 2008 10:55 am

OK, thanks
Do I understand you correctly that the free
library (Lite) is available only in small
memory model build ?
Also, does it mean that if I get Salvo LE
for MSP 430 it is built for small memory
model ?

Thanks in advance
Alex

quote:
Originally posted by aek:
Memory models must be consistent across all components.

If you can't use an MSP430X Salvo Library, then you'll need to do a Pro source-code build (no libraries).


alex
 
Posts: 3
Joined: Sun Jul 20, 2008 11:00 pm

Re: Memory model related linking error

Postby aek » Thu Jul 24, 2008 11:40 am

Yes and yes.

Only Pro allows you to avoid these problems, that typically come up as the compiler advances ahead of the Salvo releases or as the users want to utilize compiler features that are not necessary to demonstrate Salvo via Salvo Lite.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 4 guests

cron