Devaiah et al.,
the current RH GCC that is available standalone (build 317) and also part of 
CCSv6.0.0 does not yet support automatically distributing code beyond the "64KB 
boundary". This is a major limitation and that's one of  the reasons why we 
still consider this toolchain "beta". However there is an enhancement request 
filed against the tools (#4562633 - Linker does not distribute code in 
available ROM memory regions
GCC linker cannot access memory >64k automatically) and the folks at RH as well 
as our own TI folks are currently working on having this addressed for the "GA" 
version of RH GCC for MSP430 which is planned to be released sometime in July. 
While we are at it there are also some improvements to the GDB Agent on the 
near-term radar screen.

Sorry for all the confusion this 64K issue caused, I just had a quick look into 
CCS release notes and a few other places and I could not see this officially 
documented as an issue (but I may have missed it).

Regards,
Andres Dannenberg

Applications Manager, MSP New Product Development * Ultra-Low Power MCUs
Texas Instruments, Inc. * Dallas, TX, U.S.A. * +1 (214) 567-5550


-----Original Message-----
From: Devaiah Chendanda [mailto:devaia...@altiux.com] 
Sent: Friday, May 30, 2014 1:37 AM
To: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Unable to use LARGE MEMORY MODEL with RH GCC

Thank you for Delorie for the quick response!! 

Please, find the my project settings in CCSv6 that I am currently using:

1. Under "General" Tab -> Variant: MSP430F5438A.
     In "Advance Settings(Under Genaral tab)" -> 
          Compiler Version: GNU v4.8.0(Red Hat)
           Linker command file: msp430f5438a.ld
           Runtime support library: libc.a (NOTE: Compiler generates the 
following error when I choose the 
                                                               "libc.a"  file 
present in "/large/libc.a" -- "cannot find 
-l/home/devaiahchendanda/ti/ccsv6/tools/compiler/gcc_msp430_4.8.371/msp430-elf/lib/large/libc"

2. Under "GNU Compiler --> Runtime"
        Target MCU(-mmcu) : MSP430x
         Symbols : [I have defined the following 3 symbols: ] 
                           __LARGE_DATA_MODEL__
                           __LARGE_MEMORY_MODEL__
                           __MSP430F5438A__                                     
                                      
3. I have also tried including the PATH -- 
"/home/devaiahchendanda/ti/ccsv6/tools/compiler/gcc_msp430_4.8.371/msp430-elf/lib/large"
 in "Directories-->Include path" but this didn't help.

4. Optimization Level: None also, I have enabled "-fdata-sections" & 
"-ffunction-sections".

5. under "Miscellaneous" Tab I have entered "-mlarge".

6. I have not changed anything in "GNU Linker" Tab. All settings are default.

SORRY, for writing a very long mail, this is with an intention to let you know 
if I am missing anything here.

Thank you,

Regards,
Devaiah Chendanda


________________________________________
From: DJ Delorie <d...@redhat.com>
Sent: Thursday, May 29, 2014 9:34 PM
To: Devaiah Chendanda
Cc: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Unable to use LARGE MEMORY MODEL with RH GCC

The right way to enable large model is to use -mlarge

If that causes problems, we'd need to know more about the problem to try to 
diagnose it.

Note that adding -mlarge means that *all* objects and libraries must be 
recompiled with -mlarge, you can't mix and match large and small model.

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to