cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cubemx 6.2 generates wrong G4 DAC initialization code, using LL library

Bruno Hu
Associate II

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);"

3 REPLIES 3
Khouloud ZEMMELI
ST Employee

Hello @Bruno Hu​ 

Thank you for your feedback, I'll check it then I'll get back to you.

Khouloud

Khouloud ZEMMELI
ST Employee

Hi again @Bruno Hu​ ,

You're right! I have reproduced the issue on my side and it will be fixed.

Thank you for raising the issue to our attention and sorry for any inconvenience this may have caused.

Khouloud

Hello @Bruno Hu​ ,

I'm back again to inform you that issue is now fixed, you can use the latest CubeMX version available on site :)

Khouloud