Skip to main content
snaghyun choi
Associate II
April 29, 2019
Question

I have compile issue with stm32cubemx.

  • April 29, 2019
  • 5 replies
  • 1888 views

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?

This topic has been closed for replies.

5 replies

Zipta
Visitor II
April 30, 2019

in the "stm32f407xx.h" file

look at 

#define __MPU_PRESENT       1U

and change to

#define __MPU_PRESENT       0U

snaghyun choi
Associate II
May 3, 2019

​Thanks, Zipta

I wonder, does stm32cubemx has error?

Dimitar Dyakov
Associate III
June 4, 2019

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
Visitor II
January 11, 2020

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
Visitor II
January 12, 2021