Skip to main content
snaghyun choi
Associate II
Apr 29, 2019 5:04 AM UTC
Question

I have compile issue with stm32cubemx.

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
Apr 30, 2019 4:49 AM UTC

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 6:50 AM UTC

​Thanks, Zipta

I wonder, does stm32cubemx has error?

Dimitar Dyakov
Associate III
Jun 4, 2019 7:27 PM UTC

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
Jan 11, 2020 1:52 AM UTC

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
Jan 12, 2021 7:57 PM UTC