Skip to main content
Bruno Hu
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);"

This topic has been closed for replies.

2 replies

Khouloud ZEMMELI
ST Employee
March 4, 2021

Hello @Bruno Hu​ 

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

Khouloud

Khouloud ZEMMELI
ST Employee
March 4, 2021

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
August 19, 2021

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