2023-11-28 07:26 AM - last edited on 2023-11-29 02:20 AM by Imen.D
Hi there!
I just would like to report that enabling the MPU for the M7 core on my NUCLEO-H755ZI-Q, CubeMX (6.9.2, with H7 package version 1.11.1) generates 2 functions:
MPU_Initialize() and
MPU_Config().
While the second one is declared and defined in the main.c; the first one is just declared and never defined nor used generating a compiler warning.
It's simple to fix it by cancelling the useless declaration, but the warning com back any time the code is re-generated...
iTTy
Edit: Edited by ST Moderator to add right Label "STM32CubeMX"
Solved! Go to Solution.
2023-12-18 11:53 PM
Hi @tec683,
as mentioned above, updating the environment to a newer one (IDE v.1.14.0, MX v6.10.0 with H7 FW packages v. 1.11.1) seems to fix this issue.
By!
2023-11-28 09:21 AM
Can you share your IOC? There are two different cores and lots of ways to configure the MPU.
2023-11-28 10:51 AM - edited 2023-11-28 10:52 AM
Hello @iTTy
Can you please try with latest release of STM32CubeMX (v 6.10.0)?
The static void MPU_Initialize(void); declaration is not added in this context.
Imen
2023-11-29 02:14 AM
Hi everyone!
@TDK, I would like to attach my .ioc there but I get an error...
Moreover seems there are more then 3 file attached, but I can't clean this section....
I will try in the next post... sorry!
@Imen.D , I did it as follow:
I confirm the wrong MPU_Initialize() declaration is no more present.
2023-11-29 02:20 AM
2023-12-14 08:50 AM
This MPU_Initialize declared static warning has occurred across H7 and F7 families in my experience. It happens when code is generated with the MPU enabled. Not with an initial example. Should we be doing something with this? It is just a declaration with no code attached that I've found.
2023-12-18 11:53 PM
Hi @tec683,
as mentioned above, updating the environment to a newer one (IDE v.1.14.0, MX v6.10.0 with H7 FW packages v. 1.11.1) seems to fix this issue.
By!