2019-04-28 10:04 PM
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?
2019-04-29 09:49 PM
in the "stm32f407xx.h" file
look at
#define __MPU_PRESENT 1U
and change to
#define __MPU_PRESENT 0U
2019-05-02 11:50 PM
Thanks, Zipta
I wonder, does stm32cubemx has error?
2019-06-04 12:27 PM
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
2020-01-10 05:52 PM
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?
2021-01-12 11:57 AM
Here I suppose "__RESTRICT" is described. (https://www.keil.com/pack/doc/CMSIS/Core/html/group__compiler__conntrol__gr.html#ga378ac21329d33f561f90265eef89f564). Some info gave user: "quantum-leaps" here: https://github.com/ARMmbed/mbed-os-example-tls/issues/133