@@ -26,16 +26,17 @@ track on its own schedule.
2626## Architecture
2727
2828We use [ Unicorn Engine] ( https://www.unicorn-engine.org/ ) (QEMU-derived)
29- for ARM Cortex-M CPU emulation, and provide our own MMIO peripheral
30- models in Rust. The repo is a Cargo workspace under
31- [ ` stm32-sim/ ` ] ( stm32-sim ) :
29+ for ARM CPU emulation, and provide our own MMIO peripheral models in
30+ Rust. The Cortex-M targets boot in Thumb/MCLASS mode; the MP135
31+ target boots in ARM mode as a Cortex-A7 (with MMU). The repo is a
32+ Cargo workspace under [ ` stm32-sim/ ` ] ( stm32-sim ) :
3233
3334```
3435stm32-sim/
3536 core/ CPU + MMIO bus + ELF loader + Runner
3637 peripherals/ USART, RCC, RNG, CRYP, HASH, PKA
37- chips/ STM32H753 / STM32U575 / STM32U585 chip configurations
38- (memory map + peripheral wiring)
38+ chips/ STM32H753 / STM32U575 / STM32U585 / STM32MP135 chip
39+ configurations (memory map + peripheral wiring)
3940 runner-bin/ `stm32-sim` CLI binary
4041```
4142
@@ -50,18 +51,26 @@ even though three chips might present three different DIN/HR layouts.
5051
5152## Status
5253
53- Both ** STM32H753** (Cortex-M7, HAL v1, no PKA) and ** STM32U575**
54- (Cortex-M33, HAL v2, PKA v2) chip targets boot, run firmware, and
55- drive their on-chip cryptographic peripherals end-to-end:
56-
57- | Peripheral | H7 (v1) | U5 (v2) |
58- | ------------| ---------| ---------|
59- | USART | OK | OK |
60- | RCC | stub | stub |
61- | RNG | OK | OK |
62- | CRYP/AES | ECB/CBC/CTR/GCM (HAL-driven) | ECB/CBC/CTR/GCM |
63- | HASH | SHA-1/224/256, MD5 (HAL-driven, hardware HMAC mode supported) | SHA-1/224/256, MD5 |
64- | PKA | n/a | ECC mul (P-256/P-384), RSA modexp, mod arithmetic |
54+ ** STM32H753** (Cortex-M7, HAL v1, no PKA), ** STM32U575/U585**
55+ (Cortex-M33, HAL v2, PKA v2), and ** STM32MP135** (Cortex-A7,
56+ HAL v2 with the H7-style CRYP block, PKA v2) chip targets all boot,
57+ run firmware, and drive their on-chip cryptographic peripherals end-
58+ to-end:
59+
60+ | Peripheral | H7 (v1) | U5 (v2) | MP135 |
61+ | ------------| ----------------------------------| --------------------| ---------------------------------------|
62+ | USART | OK | OK | OK (UART4) |
63+ | RCC | stub | stub | stub |
64+ | RNG | OK | OK | OK (RNG1) |
65+ | CRYP/AES | ECB/CBC/CTR/GCM (HAL-driven) | ECB/CBC/CTR/GCM | ECB/CBC/CTR/GCM (CRYP1, aliased CRYP) |
66+ | HASH | SHA-1/224/256, MD5 | SHA-1/224/256, MD5 | SHA-1/224/256, MD5, SHA-384/512, SHA3-224/256/384/512, SHAKE-128/256 (HASH1) |
67+ | PKA | n/a | ECC mul (P-256/P-384), RSA modexp, mod arithmetic | same as U5 |
68+
69+ The MP135 is bare-metal Cortex-A7 with no internal flash. The firmware
70+ links at the DDR base (0xC0000000); the simulator maps DDR as plain
71+ RAM and the ELF loader writes segments straight there, so no DDR_Init
72+ helper is needed. The firmware enables a flat 1 MiB-section MMU map
73+ during early boot to mirror the real-hardware path.
6574
6675The peripheral register adapters are split into ` v1.rs ` (H7 / HAL v1)
6776and ` v2.rs ` (U5 / HAL v2) modules sharing the same cryptographic
@@ -90,6 +99,7 @@ toolchain:
9099``` sh
91100make -C firmware/smoke-test-h7
92101make -C firmware/smoke-test-u5
102+ make -C firmware/smoke-test-mp135
93103```
94104
95105## Running
0 commit comments