Cascade
SPI Two Devices on One Bus Debug
Symptom
Each boot prints the right temperature, then WHOAMI:0xFF. Alone, the accelerometer answered. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
Once after reset, USART1 prints TEMP:<celsius> then WHOAMI:0x<id>, as the sensors report them. A debug probe on J2 can still attach after boot.
Notes
The bench plays the two sensors from power-up. MISO's pull-up makes an unanswered read 0xFF. Only I2C1 needs its clock enabled on this bench, and the program does that. USART1 at 9600 baud: BRR = 0x683