Skip to main content
Varadharajan V
Associate III
Mar 26, 2019 8:14 AM UTC
Solved

STM32CubeMX F4 1.24 Code Generation Error for NUCLEO-F446RE

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

This topic has been closed for replies.
Varadharajan V
Varadharajan VBest answer
Associate III
Apr 17, 2019 6:43 AM UTC

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

3 replies

Varadharajan V
Varadharajan VAuthorBest answer
Associate III
Apr 17, 2019 6:43 AM UTC

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
Visitor II
May 11, 2019 2:14 PM UTC

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

Oros Nig
Associate II
Jan 13, 2020 4:29 PM UTC

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