cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX F4 1.24 Code Generation Error for NUCLEO-F446RE

Varadharajan V
Associate III

I'm generating code using STM32CubeMX F4 1.24 with STM32CubeMX 5.1.0 for the board

NUCLEO-F446RE for IAR EWARM 7 version

This application is simple LED blinking test for the new F4 cubeMX 1.24

After generating code and compiling in IAR EWARM i'm getting error

I've attached the Image for reference

Kindly Correct the issue

While selecting older cube repo no problem, no error occuring

for example selecting F4 1.23 no error happens

1 ACCEPTED SOLUTION

Accepted Solutions
Varadharajan V
Associate III

The answer is use EWARM 8.x version for generated code since __STATIC_INLINE and __RESTRICT macros are defined in 8.x version onwards

View solution in original post

3 REPLIES 3
Varadharajan V
Associate III

The answer is use EWARM 8.x version for generated code since __STATIC_INLINE and __RESTRICT macros are defined in 8.x version onwards

KKopy
Associate

Or go to definition of __RESTRICT and redefine it as restrict (instead of __restrict)

Oros Nig
Associate II

Hi,

Is it possible for ST to add something like that into cmsis_iccarm.h

#ifndef  __RESTRICT

 #if __ICCARM_V8

  #define __RESTRICT      __restrict

 #else

  #define __RESTRICT      restrict

 #endif

#endif

to allow compilation without error with IAR V7 ?

Thx & Regards