编译使用CubeMX生成的代码时报错:Error: L6218E: Undefined symbol HAL_PWREx_DisableUCPDDeadBattery (referred from stm32g4xx_hal_msp.o).解决方法:将HAL_PWREx_DisableUCPDDeadBattery改为HAL_PWREx_DisableUSBDeadBatteryPD使用LL库生成的SPI代码时,程序卡死在while(LL_SPI_IsActiveFlag_RXNE(ICM20.