Skip to main content
Bruno Hu
Associate II
Mar 4, 2021 4:39 AM UTC
Question

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

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

This topic has been closed for replies.

3 replies

Khouloud ZEMMELI
ST Employee
Mar 4, 2021 8:16 AM UTC

Hello @Bruno Hu​ 

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

Khouloud

Khouloud ZEMMELI
ST Employee
Mar 4, 2021 2:47 PM UTC

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

Khouloud ZEMMELI
ST Employee
Aug 19, 2021 9:18 AM UTC

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