Solved
Why is PDM2PCM not enabled for STM32G4 in CUbeMX?
I am trying to add PDM2PCM for STM32G4 in CubeMX/IDE, but I cannot add it.
Why is that so?
I am trying to add PDM2PCM for STM32G4 in CubeMX/IDE, but I cannot add it.
Why is that so?
I have added manually the library in G474 so far it is working.
It is almost the same as what I have done here https://github.com/VictorTagayun/STM32_PDM-to-PCM-Processing
You also need to enable CRC like what is needed in F4/F7/H7 series.
hcrc.Instance = CRC;
hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_ENABLE;
hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
if (HAL_CRC_Init(&hcrc) != HAL_OK)
{
Error_Handler();
}Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.