cancel
Showing results for 
Search instead for 
Did you mean: 

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

davel
Associate

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
davel
Associate

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

View solution in original post

2 REPLIES 2
MHoll.2
Senior III

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?

davel
Associate

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