Skip to main content
Explorer
February 13, 2024
Question

setting MMU on stm32mp157

  • February 13, 2024
  • 1 reply
  • 2043 views

Please show me a working example of setting up the MMU for STM32MP157D-EV1. and where to place the Translation table correctly (for cortex A7)

It is assumed that all data and program will be located in DDR memory, without using the OS

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    February 14, 2024

    HI @Roman Andronov 

    MMU settings are automatically handled by our OpenSTLinux deliveries. You don't have (and you can't) setup it directly.

    If you are playing bare-metal, please note that STMicroelectronics did not provide any bare-metal support on STM32MP15 series. You have to check with ST partners https://www.st.com/content/st_com/en/partner/partner-program.html?key=STM32MP&country=country#2 .

     

    Nevertheless, as we provide bare-metal support on STM32MP13 series thru STM32CubeMP13 delivery.

    https://www.st.com/en/embedded-software/stm32cubemp13.html

    As this device use same Cortex-A7 (but single core only) and very close HW, maybe you could get some insight from this delivery.

    Regards

    Explorer
    February 14, 2024

    The latest version of StmCubeMX does not correctly create a project for stm32mp13 bare-metal (for STM32MP135F-DK)

     

    there is no .cproject file with environment settings, as well as a linker file

    The set of files that created the StmCubeMX

    ./mmu_test
    ./mmu_test/.mxproject
    ./mmu_test/Application
    ./mmu_test/Application/Core
    ./mmu_test/Application/Core/Inc
    ./mmu_test/Application/Core/Inc/cortex.h
    ./mmu_test/Application/Core/Inc/gpio.h
    ./mmu_test/Application/Core/Inc/main.h
    ./mmu_test/Application/Core/Inc/RTE_Components.h
    ./mmu_test/Application/Core/Inc/stm32mp13xx_hal_conf.h
    ./mmu_test/Application/Core/Inc/stm32mp13xx_it.h
    ./mmu_test/Application/Core/Src
    ./mmu_test/Application/Core/Src/cortex.c
    ./mmu_test/Application/Core/Src/gpio.c
    ./mmu_test/Application/Core/Src/irq_ctrl_gic.c
    ./mmu_test/Application/Core/Src/main.c
    ./mmu_test/Application/Core/Src/mmu_stm32mp13xx.c
    ./mmu_test/Application/Core/Src/stm32mp13xx_hal_msp.c
    ./mmu_test/Application/Core/Src/stm32mp13xx_it.c
    ./mmu_test/Application/Core/Src/system_stm32mp13xx_A7.c
    ./mmu_test/Drivers
    ./mmu_test/Drivers/CMSIS
    --skip--
    ./mmu_test/Drivers/STM32MP13xx_HAL_Driver
    --skip--
    ./mmu_test/mmu_test.ioc
    ./mmu_test/STM32CubeIDE
    ./mmu_test/STM32CubeIDE/.project
    ./mmu_test/STM32CubeIDE/.settings
    ./mmu_test/STM32CubeIDE/.settings/org.eclipse.core.resources.prefs

    --end--

    Technical Moderator
    February 15, 2024