Skip to main content
Associate
October 10, 2026
Question

DTR2-DTGF ignored!

  • October 10, 2026
  • 0 replies
  • 10 views

STM32CubeMX 6.18.1 + STM32Cube FW_G4 1.28.3
Target: STSPIN32G4 / TIM1
Asymmetrical Dead Time enabled

CubeMX GUI:

  • Dead Time = 50
  • Falling Dead Time = 50
  • Asymmetrical Dead Time = Enable

Generated LL code:

C

 

 

TIM_BDTRInitStruct.DeadTime = 50;

No write to TIM1->DTR2 is generated.

Runtime observation:

  • DTAE = 1
  • DTGF = 0

Therefore CubeMX appears to generate DTAE but not DTGF.