Skip to main content
Visitor II
June 27, 2025
Solved

Moving timers to CHE/F in the Example BuckBoost on B-G474E-DPOW1

  • June 27, 2025
  • 2 replies
  • 303 views

Hello,

We've been working with the B-G474E-DPOW1 kit with the intention of building a custom project board using the G474E. I've had success starting with the example buck/boost project in the STM32CubeIDE (1.18.1). Now though I need to move the HRTIM CHC/D timer location used in the example design to the CHE/F locations.

After struggling with CubeMX without success to make the change from C/D to E/F, I reverted to not using .ioc at all and instead searching and replacing what was necessary to map things over to the CHE/F timers. After fixing several mistakes, the system is very close to working as it did with the unmodified example. But there's one BIG problem remaining that I've spent hours in the debugger chasing things down. I don't get any output on CHE (PC8/9) they are always stuck LOW. CHF (PC6/7) works perfectly. I've confirmed both timers are configured the same. 

Any insight is appreciated!

Thanks,

Dave

 

    This topic has been closed for replies.
    Best answer by davel

    Awesome!  I didn't realize CHE was on a different AF. Setting it to AF3 fixed the issue. Thanks so much!

    2 replies

    Graduate II
    June 28, 2025

    Probably you missed some changes needed in HAL_HRTIM_MspPostInit() (for example HRTIM_CHE1 and HRTIM_CHE2 are on AF3 not on AF13 as are HRTIM_CHC1 and HRTIM_CH2).

    Can You post Your modified Code?

    davelAuthorAnswer
    Visitor II
    June 29, 2025

    Awesome!  I didn't realize CHE was on a different AF. Setting it to AF3 fixed the issue. Thanks so much!