cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L0 Libraries for __CC_ARM GreenHills Compiler

gerardo
Associate II
Posted on November 07, 2014 at 10:50

Hi Guys,

I´m trying to compile a simple custom project in GreenHills but I´m getting some kind of problems.

I´m developing a project with STM32L0C52 uC.

core_cm0plus.h

#if   defined ( __CC_ARM )

  #define __ASM            __asm                                      /*!< asm keyword for ARM Compiler          */

  #define __INLINE         __inline                                   /*!< inline keyword for ARM Compiler       */

  #define __STATIC_INLINE  static __inline

#endif

core_cmFunc.h

__STATIC_INLINE uint32_t __get_CONTROL(void)

{

  register uint32_t __regControl        __ASM(''control'');

  return(__regControl);

}

 0690X00000603ROQAY.jpg

 

My question is. Are STM32L0 Libraries set to MULTI Compiler??
1 REPLY 1
Posted on November 07, 2014 at 17:00

__CC_ARM is defined for ARM (Keil & RealView) compilers.

You will need to create some suitable MACROs or DEFINEs for GHS, for the inline function, and inline assembler directives. Given the amount of a GHS license perhaps you should get their support staff to walk you through integration of ARM CMSIS libraries?

Check also your compiler documentation. Not a lot of GHS MULTI users here, perhaps some are lurking?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..