STEVAL-MKI109D — GPIO pin mapping between STM32H563ZI and DIL24 socket (SPI + power supply) for custom bare-metal firmware
- July 1, 2026
- 1 reply
- 10 views
Hi,
Hardware: STEVAL-MKI109D (STM32H563ZI), ISM330DHCX on DIL24
I'm developing custom bare-metal firmware for the STEVAL-MKI109D motherboard (STM32H563ZI), flashed via DFU, to communicate directly with an ISM330DHCX sensor on a STEVAL-MKI207V1 DIL24 adapter — not going through MEMS Studio.
Problem:
I can't get a valid SPI response from the sensor — WHO_AM_I consistently reads back as 0xFF. I've verified the following are correct against the ISM330DHCX datasheet:
- GPIO alternate function mapping (AF5, SPI1) confirmed via register dump
- SPI1 configuration matches Mode 3 (CPOL=1, CPHA=1), master mode, 8-bit frames, software NSS
- Read command format (
0x80 | reg+ dummy byte) andHAL_SPI_TransmitReceivesequence match the datasheet's read protocol
The sensor and DIL24 socket are confirmed good — sending the stock firmware's power-on/voltage-set commands over the same UART interface correctly reads WHO_AM_I = 0x6B.
I'm currently using PA4/PA5/PA6/PA7 for SPI1 CS/SCK/MISO/MOSI in my firmware, but I suspect these may not be the correct pins for the DIL24 socket's SPI bus on this specific board — possibly conflicting with the pins used for the software-adjustable VDD/VDDIO supply.
Question:
Could someone confirm the correct GPIO pin assignments between the STM32H563ZI and the DIL24 socket's SPI signals (SCK/MOSI/MISO/CS)? I'm only looking for the pin mapping/schematic reference — so I can write my own bare-metal driver without conflicting with the board's power supply circuitry.
Thanks in advance.
USB CDC - Working - Previous issue for continuity (Resolved)
