[STM32H7] CORTEX_M7 configuration for MPU in CUBEMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-10 9:19 PM
Dear Experts,
I am looking at configuring the CORTEX_M7 section for my custom STM32H743VIT6 based board. Below are the functionalities that I plan to use with the board:
a. Sensors' reading via SPI, I2C,
b. Communication via UART/USART, USB, Ethernet (LAN8742),
c. LwIP and potentially FreeRTOS
I would like to have your advice on the disabling / enabling of caches and especially the MPU configuration/settings in case :
1. Without external QSPI Flash and external PSRAM,
2. With external QSPI Flash and/or external PSRAM
I took some look at the STM32H7-LwIP-Examples for the NUCLEO-STM32H743 board and the following h7_lwip_freertos example but there's certain different in terms of number of MPU regions being used as well as their base addresses, sizes and permissions, etc.
Where can I find the information or documentation to correctly configure the above section, please ?
Thanks in advance and best regards,
Khang
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-11 3:44 AM - edited ‎2025-02-11 3:50 AM
For the MPU: for Cortex-M7 to prevent the speculative access and mainly for the external unused memories, it's recommended to disable the access to these memory regions using the MPU.
So in CubeMx, enable the default MPU settings by clicking yes on this pop up:
The explanation of this configuration explained in this thread.
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-10 10:05 PM
Drop FREERTOS+ LWIP (too critical and many bugs oustanding), move to AZRTOS+NetXDuo and we can help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-10 11:09 PM - edited ‎2025-02-10 11:26 PM
Hi @mbarg.1 ,
Sure, I will consider to switch to NetXDuo+AZRTOS if they are really more advantageous than LwIP + FreeRTOS. However, for the moment, I am focusing on correctly configurating the system bsp rather than the middleware.
Best Regards,
Khang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-11 12:33 AM - edited ‎2025-02-11 4:14 AM
have a look to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-11 12:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-11 3:44 AM - edited ‎2025-02-11 3:50 AM
For the MPU: for Cortex-M7 to prevent the speculative access and mainly for the external unused memories, it's recommended to disable the access to these memory regions using the MPU.
So in CubeMx, enable the default MPU settings by clicking yes on this pop up:
The explanation of this configuration explained in this thread.
Hope that helps.
