Missing MPU initialization function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-28 7:26 AM - last edited on ‎2023-11-29 2: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.
- Labels:
-
Bug-report
-
STM32CubeMX
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-28 9:21 AM
Can you share your IOC? There are two different cores and lots of ways to configure the MPU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-29 2: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 downloaded and installed new enviroment (IDE v.1.14.0, MX v6.10.0 with H7 FW packages v. 1.11.1) on a spare laptop
- I copied the project on new laptop
- I migated the project and re-generated the code.
I confirm the wrong MPU_Initialize() declaration is no more present.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-29 2:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-14 8: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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!
