2021-03-04 01:40 AM
I am using CubeIDE Version: 1.6.0 Build: 9614_20210223_1703 (UTC) to initialise the MPU as it is done for the TCP_Echoserver, however the LL resulting code does not set the LL_MPU_TEX_LEVEL1 bit for the second region
Generated code:
/* MPU Configuration */
void MPU_Config(void)
{
/* Disables the MPU */
LL_MPU_Disable();
/** Initializes and configures the Region and the memory to be protected
*/
LL_MPU_ConfigRegion(LL_MPU_REGION_NUMBER0, 0x0, 0x30000000, LL_MPU_REGION_SIZE_256B|LL_MPU_REGION_FULL_ACCESS|LL_MPU_INSTRUCTION_ACCESS_ENABLE|LL_MPU_ACCESS_NOT_SHAREABLE|LL_MPU_ACCESS_NOT_CACHEABLE|LL_MPU_ACCESS_BUFFERABLE);
LL_MPU_EnableRegion(LL_MPU_REGION_NUMBER0);
/** Initializes and configures the Region and the memory to be protected
*/
LL_MPU_ConfigRegion(LL_MPU_REGION_NUMBER1, 0x0, 0x30004000, LL_MPU_REGION_SIZE_16KB|LL_MPU_REGION_FULL_ACCESS|LL_MPU_INSTRUCTION_ACCESS_ENABLE|LL_MPU_ACCESS_SHAREABLE|LL_MPU_ACCESS_NOT_CACHEABLE|LL_MPU_ACCESS_NOT_BUFFERABLE);
LL_MPU_EnableRegion(LL_MPU_REGION_NUMBER1);
/* Enables the MPU */
LL_MPU_Enable(LL_MPU_CTRL_PRIVILEGED_DEFAULT);
}
Solved! Go to Solution.
2021-03-04 12:40 PM
Hi @Community member ,
Thanks for your feedback. I've been able to reproduce the issue from my side and I will report it internally to be reviewed by the development team.
I will keep you posted with updates.
Even though this reply doesn’t directly solve the issue, I’m marking it as Best, since it will help clarify the current situation for other customers with the same question. I will post an update here once the issue has been fixed
Thanks for your contribution.
Khouloud.
2021-03-04 12:40 PM
Hi @Community member ,
Thanks for your feedback. I've been able to reproduce the issue from my side and I will report it internally to be reviewed by the development team.
I will keep you posted with updates.
Even though this reply doesn’t directly solve the issue, I’m marking it as Best, since it will help clarify the current situation for other customers with the same question. I will post an update here once the issue has been fixed
Thanks for your contribution.
Khouloud.
2021-03-05 10:50 AM
Hello Khouloud,
can you also check for the STM32H735G-DK?
For this device, with the same settings, the CubeMX doesn't seem to generate any code for the MPU at all, neither in LL nor in HAL.
Regards,
Marco
Sorry, don't know what happened but now it works (with the same bug as above)
2022-03-24 05:05 AM
Hi @Khouloud OTHMAN,
Is there a fix for this issue planned?
I could not find anything related amongh the issues reported on github
2022-06-29 03:09 AM
Hello,
This issue is fixed in STM32CubeMX latest release.
V6.6.0 is now available under this Link.
Thanks for your contribution.
Sara.