Closed plusk01 closed 5 years ago
Seems that the APB2 peripheral SYSCFG
did not have its clock enabled. This peripheral manages EXTI for GPIO, which the IMU uses to signal it has a measurement.
Initializing the VCP was enabling the SYSCFG clock via Set_System()
, which calls RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
.
The issue is fixed by adding the clock cmd to the relevant board.c
.
There seems to be a tight connection with the VCP being initialized and the MPU EXTI.... In
beecore/examples/spi_mpu6500/main.cpp
note the following comment: