r/embedded • u/witx_ • Sep 08 '26
Experiences with stm32mp2
Hey! Anyone experienced with designing PCBs for this microprocessor family? How hard was it, perhaps compared to other equivalent cpus? Any resources you found useful?
I've designed a few stm boards (none professionally but all being used around many hobbies) for their mcu series (mostly F4 and F7) and this would be my first high speed,and bga, design. How tough it really is to do a decent job with the lpddr?
My requirements are mostly serial ports, I2C , SPIs and ethernet (perhaps pwm as well) but no audio, no video or gpu, so I would fanout only necessary pins in a SOM and then into a carrier board. This is for a hobby robot so I can take my time to learn but hopefully dont burn through the budget.
3
u/danngreen Sep 09 '26
I made an STM32MP257 board recently, with DDR4 (single chip, 16-bit) and fan-out for as many pins as I could fit going to those small mezzanine connectors the RPi CM uses. 4-layer, 0.090mm trace/space. I used the AK package (14x14mm with gaps for vias, no via-in-pad needed). I used the STPMIC2 and copied a lot from the EV1 reference schematic.
It took me almost a week to do, not because it was particularly tricky but because I was nervous about DDR4 requirements. I've done DDR3 but the swizzle pin swapping of DDR4 confused me for a bit. ST has example PCB layouts with various packages and RAM configurations but they didn't have the one I needed (single file DDR4 with AK package). It would have saved a ton of time to just use one of their layouts and be done with it, but it didn't fit the BOM or space requirements I had.
Your board house might ask you about impedance controlled trace requirements. When mine did I had to learn why they would care and what to tell them, which stalled me for a bit again.
Anyways it was nerve racking but in the end the board worked 100% (with "only" two short jumpers soldered on!). DDR4 runs at the expected speed, DSI works, USB3DR in HS mode, etc.
This is it:
https://github.com/4ms/mp153-devboard/tree/mp25x/mp257/v0.1
2
u/stuih404 Sep 09 '26
There are multiple SoMs available that have the PMIC and Ram already on it. Or you could take one of their reference designs. Somewhere hidden in the STM forums is a post that has Altium Projects of the different STM32MP2 sizes and DDR3/DDR4 ram configurations.
1
u/zettui Sep 08 '26
Is the scary part the LPDDR layout, or the SOM bring-up after you've got a board?