Associate II
March 4, 2021
Question
stm32cubemx 6.2 generates wrong G4 DAC initialization code, using LL library
- March 4, 2021
- 2 replies
- 1215 views
point 1) "DAC_InitStruct.WaveAutoGenerationConfig = __LL_DAC_FORMAT_SAWTOOTHWAVECONFIGPOLARITYRESET_DATASTEP_DATA;" should be "
DAC_InitStruct.WaveAutoGenerationConfig = __LL_DAC_FORMAT_SAWTOOTHWAVECONFIG(LL_DAC_SAWTOOTH_POLARITY_DECREMENT, 2000, 100);"
point 2) should insert "DAC_InitStruct.WaveAutoGenerationConfig = __LL_DAC_FORMAT_SAWTOOTHWAVECONFIG(LL_DAC_SAWTOOTH_POLARITY_DECREMENT, 4000, 200);"