Skip to main content
Varadharajan V
Associate III
March 26, 2019
Solved

STM32CubeMX F4 1.24 Code Generation Error for NUCLEO-F446RE

  • March 26, 2019
  • 3 replies
  • 1449 views

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.
Best answer by Varadharajan V

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
April 17, 2019

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

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

Oros Nig
Associate II
January 13, 2020

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