Thermometer
STM32 I2C Register Write Exercise
Task
The temperature sensor was left in shutdown, its reading frozen. Once after reset, wake it with 0x00 in its configuration register. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
TP1 shows one write to the sensor at 0x48: 0x01, then 0x00, then a STOP. The bus is free when your program is done.
Notes
The given code brings up I2C1, its clock included. Your program is built and run at -O0, then again at -O2. Both must pass.