This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to follow move to RAM advice on TM4C #1531-D(ULP 5.2)

Hi

I'm playing with a Launchpad TM4C123GXL using CCS 6.1.2

I've some code where I do some float multiplications. The code builds and runs fine, although I do get a compiler warning 

#1531-D (ULP 5.2) Detected floating point operation(s). Recommend moving them to RAM during run time ...

I understand this is just advice, but I'm wondering how to follow the recommendation.

I was able to find some instructions on the TI website for how to achieve a "move to RAM" on the MSP430. The instructions require you to edit linker scripts etc.

When I look at the linker etc files on my TM4C however, they are rather different - making it non-trivial to imitate the MSP430  example.

The requirement to perform a floating point multiplication must surely be common (?), and so my question is:

1.  Am I missing a simple e.g. CCS menu 'button' to get the Launchpad to handle float calculations efficiently in RAM?

2. If not, and I do need to start re-writing linker command files, can anyone point me at a TM4C-specific example?

many thanks for any help

  • Hello Harry,

    ULP directive is for Ultra Low Power and has been added for MSP432 devices. It does not affect TM4C.
  • Hi Amit

    Thankyou I understand, but I wonder if I can push a little more however...

    Whilst the compiler efficiency warning may be intended for MSP432 users, my understanding was that, by default, both the MSP432 and the TM4C load-and-run from Flash (?).

    The compiler's suggestion to improve float-function performance by "loading-to-flash-running-from-sram" is then appear to be equally applicable to the TM4C (?).

    In the case of the MSP432, I've found some detailed descriptions (several from TI themselves) of how re-code the CCS linker scripts to achieve this (one example: TI Employee DungDang on the MSP forum 6:17PM, Nov 4 2010).

    In the case of the TM4C I couldn't find anything however, except some (non TI) code snippets in an answer on this forum by _BB_  (1:23PM, May 6, 2015).

    I'm wondering whether this is because

    1. I've misunderstood the applicability to TM4C ?

    2. Examples are there, but I've missed  them?

    3. TI haven't got around to it !

    many thanks

  • Hello Harry,

    The linker ccs scripts for our bootloader in TivaWare shows how to describe the code for load from flash and run from SRAM