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.

TM4C123GH6PM: Possible to use Cortex Math library with CCS 7?

Part Number: TM4C123GH6PM

Hi, I used STM32F407 boards with Keil-MDK 5 and now I'm trying to use the TM4C123GXL launchpad with CCS 7.1.

I used the STM32F4 to test FFT (Fast Fourier Transform) and FFT functions are provided from CMSIS-DSP library.

arm_cortexM4lf_math.lib

This library was used when testing FFT with STM32F4. I want to test FFT with TM4C123 MCU as well.

So my questions are,

1) I believe that library file is available for Keil-MDK. Since CCS doesn't use the Keil compiler, I think I have to use the GCC library (.a file).

After downloading TM4C123 SDK, is the GCC library file provided in the SDK?

2) If the application uses ROM_FPULazyStackingEnable, does the application need to use DSB and ISB instruction or not?

(Check the video 6:20)

-Best Regards

  • The ARM GCC (v4.9.3) can be downloaded and integrated into Code Composer Studio. (View -> CCS App Center -> "See More" -> CDT GNU)

    Both FPUStackingEnable() and FPULazyStackingEnable() will allow the use of floating point instructions in interrupt routines.
  • Hi, Bob. I have downloaded the CDT GNU as you suggested.

    I'm not used to CCS so is there extra steps configuring to use the DSP library?

    Configure CCS to use the ARM GCC to use the DSP library?

    Import library files (.a file)?
  • Since you are familiar with Keil, why switch to a single vendor solution?

    Robert
  • David__ said:
    I'm not used to CCS so is there extra steps configuring to use the DSP library?

    Does the Using the CMSIS DSP Library in Code Composer Studio™ for TM4C MCUs application report help?

  • Hi, Robert. The reason is due to my customer's request; he wants me to work with CCS since there is a developer who uses CCS on his side.

    I wish to stick with Keil-MDK, but this contract relationship cannot make me do what I want.

    Thanks for time.
  • Ah, such are the joys of contract consulting.

    Robert
  • David__ said:
    ...my customer's request; he wants me to work with CCS since there is a developer who uses CCS on his side.

    May I offer a suggestion which has worked very well for my small tech firm?      As this is a client request - is it not to your benefit to advise the client:

    • Yes - you'll do your best to accommodate his direction
    • that accommodation (necessarily) however - "moves you" from your comfort zone/sweet spot
    • that "movement" from your "norm" is almost guaranteed to place higher "time & effort" demands upon you/your team
    • as a result - both the price you must (fairly) charge and your delivery time - are both (highly) likely to increase

    I would advise too that you should consider adding a clause which protects you/your firm - from "changes and/or modifications" - after the contract has been emplaced.    Unless trivial - none should be "free" - and delivery time is almost certain to increase to accommodate such change/modification...    (again - this very much for your "protection")

    These are a few of the tactics I learned - in taking past tech firm, Public - offered here for your consideration.

    Note that NOT ALL business is good business.      Some business (should) be avoided...     (Client reaction to the above - well signals - the quality of your business relationship.)

  • Hi, Chester! That PDF instruction saved my life!

    Although it took quite a while to follow the instruction, I eventually imported the complex FFT example to CCS 7.

    Also, thanks to others who have replied this thread. Love you guys~

  • As past advised - it is hoped that you "RAISED your PRICE" - to reflect the (easily predicted) EXTRA TIME/EFFORT - forced upon you by client's demand.     Apparently your "mastery" of that  manual required (nearly) a full month.     (30+ days have elapsed between postings)

    Switching from a successfully working system - to another (especially an unpracticed other) - for (only) "client ease" - almost always leads to financial hardship...

    It must be noted that your (proper) estimation of the extra charge required was sure to "prove difficulty" - and most always results in "Reduced Profits or (even) LOSS!"

    Again - not "all" business is "good" business...

  • Hi, cb1_mobile. It sure is.

    I have learned a valuable lesson from both you and my client.

    Thanks for this valuable tip!
  • Hi David,

    I'd like to be able to report that I "knew much of this" - prior to venturing into small, Tech Biz. Unfortunately - such was "not" the case - have the scars & (almost) healed "wounds of the battle-field" to show for such, "lack of awareness."

    Focus upon a "major" - multi-industry/segment need - and building that high level expertise - best avoids the situation just encountered.

    Too often "client need" is outside your best interest - that must be detected - and then (very) carefully considered. Your heightened "awareness" is your first step to, "Selecting proper (and profitable) assignments." Bon chance, mon ami...