When tested the I2C timing was off by a factor of 4. When set to 100k, SCL was 25k. When set to 400k, SCL was 100k. Timing values were generated with CubeMX so I believe this is an issue with the clocks reporting incorrect speed. MSI speed looks to be defined by a variable
|
pub const MSI_FREQUENCY_MHZ: usize = 16; |
When tested the I2C timing was off by a factor of 4. When set to 100k, SCL was 25k. When set to 400k, SCL was 100k. Timing values were generated with CubeMX so I believe this is an issue with the clocks reporting incorrect speed. MSI speed looks to be defined by a variable
tock/chips/stm32wle5xx/src/clocks/msi.rs
Line 53 in ec8cd9e