Skip to main content
Associate II
April 21, 2024
Solved

MPU_Config(void) instead of MX_GPIO_init(void)

  • April 21, 2024
  • 6 replies
  • 4033 views

Hello, 

I am working on STM32H743VIT6 MCU. when I generate the code, I get MPU_Config(void) function instead of MX_GPIO_init(void) with no GPIO configuration. How can I fix this? 

Thank you in advanceMPU_config.PNG

    This topic has been closed for replies.
    Best answer by STTwo-32

    Salam @Afsd24 

    For this cortex-M7 device, it is recommended to preconfigure the MPU. So, on the last versions of CubeMX when you select this MCU and a few other cortex-M7 MCUs and Click on start project you will receive this message:

    STTwo32_0-1713686130865.png

     

    Clicking Yes will generate a configuration of the MPU on the function MPU_Config(void). If you don't want, you just have to answer No to this message.

    Best Regards.

    STTwo-32 

    6 replies

    mƎALLEm
    ST Technical Moderator
    April 21, 2024

    Hello,

    Could you please provide which CubeMx version you are using?

    Could you please attach your .ioc file?

    To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
    Afsd24Author
    Associate II
    April 21, 2024

    Here is the .ioc file. now I get the MX_GPIO_init(void) function but i still have MPU_Config(void) 

    AScha.3
    Super User
    April 21, 2024

    Hi,

    (i also use the devEbox H743 board)

    so just dont use the MPU , if you dont know how to use :

    AScha3_0-1713685883209.png

     

    If you feel a post has answered your question, please click on " Best Answer ".
    Afsd24Author
    Associate II
    April 21, 2024

    Thank you for your help. it works properly now