cancel
Showing results for 
Search instead for 
Did you mean: 

setting MMU on stm32mp157

Roman Andronov
Associate II

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

 

3 REPLIES 3
PatrickF
ST Employee

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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--

Maybe read https://wiki.st.com/stm32mpu/wiki/STM32CubeMP13_Package_-_Getting_started#How_to_develop_and_run_your_examples_or_applications

 

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.