4ms / stm32mp1-baremetal

Baremetal framework and example projects for the STM32MP15x Cortex-A7 based MPU
Other
148 stars 28 forks source link

SPI Examples? #27

Open codewitch-honey-crisis opened 4 months ago

codewitch-honey-crisis commented 4 months ago

I've been trying to get SPI to work (with DMA) on this device using your bare metal code. I've imported the HAL declarations and implementations for SPI but I cannot figure out the clocks, the dividers and the DMA setup, all of which is just different enough from what I'm used to that it's losing me.

And I'm pretty easily lost at this point admittedly, being fairly new to ARMs and brand new to Cortex As.

I was trying to use STM32CubeMX to cheat my way through some of it, but it's not working out. Also tried decoding devicetrees - which I can read a little of due to using zephyr, but I'm not getting very far.

young-sea commented 2 months ago

It is recommended that you use STM32CubeH7 to generate code for reference