cancel
Showing results for 
Search instead for 
Did you mean: 

I have compile issue with stm32cubemx.

snaghyun choi
Associate III

Hello sir,

CPU : stm32f407VGT

I just set ETH and LWiP and generate file using stm32cubemx.

The file is generate succefully. But the file has error with IAR version7.  

​=========================================================

file name : mpu_armv7.h

__STATIC_INLINE void orderedCpy(volatile uint32_t* dst, const uint32_t* __RESTRICT src, uint32_t len)

{

uint32_t i;

for(i=0U;i<len;++i)

{

dst[i] = src[i];

}

}

error : expected a ")"

error : identifier "len" is undefined

error : identifier "src" is undefined

error : too many arguments in function call

error : too many arguments in functin call

Why is this error make and how to fix it?

5 REPLIES 5
Zipta
Associate

in the "stm32f407xx.h" file

look at 

#define __MPU_PRESENT       1U

and change to

#define __MPU_PRESENT       0U

snaghyun choi
Associate III

​Thanks, Zipta

I wonder, does stm32cubemx has error?

Dimitar Dyakov
Associate III

I would not change the settings in the "stm32f407xx.h" file.

In cmsis_iccarm.h

#ifndef   __RESTRICT
  #define __RESTRICT            __restrict
#endif

change it to

#ifndef   __RESTRICT
  #define __RESTRICT            restrict
#endif

SBile.1
Associate

Thanks a lot.

I tried the answer updating "cmsis_iccarm.h" file and it works well. I want to understand what's the problem meaning is? And what's the workaround is doing exactly?

DMens.1
Associate