Reading values of SPI data register of STM32 MCU
问题 There are quite a few similar questions, but none seem to have quite the same issue. I am connecting an STML4 MCU to a 6-axis sensor (LSM6DS3). I have successfully implemented everything in I2C, but would like the extra speed of SPI (and DMA, if I can get these first steps working...). So for a first step, I am trying to read the WHO_AM_I register ( 0x0F ) of the device, which should reply with 0x69 . Here is the code: uint8_t who = 0; // Sanity check/debugging aid should get 0x5D who = 0x43