Playing with the STM32MP2
Web page · https://serd.es///2026/11/08/playing-with-stm32mp2.html
First seen by Oriel on .
AI summary
The author documents bringing up STM32MP2 as a bare-metal, Linux-free microcontroller, running Cortex-A35 and M33 firmware from SRAM while pursuing PCIe connectivity to an FPGA.
- The experiment uses upstream aarch64 and arm toolchains, avoids vendor SDKs, TrustZone, U-Boot, and external DDR, and stores code and data in on-die SRAM.
- The M33 boots from STM32MP2 FSBL flash images, while the dual A35 cluster requires explicit reset, wake, boot-release, exception-vector, cache, and MMU initialization.
- The A35 setup uses identity-mapped page tables to control caching and execute permissions, with shared mappings between cores and separate initialization sequencing for core 0 and core 1.
- STM32MP2 provides 808 kB of SRAM, dual 1.5 GHz Cortex-A35 cores, a 400 MHz M33, a 200 MHz M0+, and 5 Gbps SERDES configurable for PCIe gen1/2 x1 or USB 3.
- Compared with STM32H735, the MP2 offers substantially more compute and memory but lacks internal flash and TCM, making firmware size, cache behavior, and external SPI flash performance important constraints.
#stm32mp2 #bare-metal firmware #cortex-a35 #pcie
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Lobsters: 12, latest observation ; +11 over observed period since
Comments
Comment count reported by the source.
- Lobsters: 0, latest observation ; 0 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | cwmxea | https://serd.es///2026/11/08/playing-with-stm32mp2.html Read discussion |