Skip to main content
SWenn.1
Senior III
Jun 17, 2021 5:40 PM UTC
Solved

CubeIDEMX doesnt' enable RCC bit?

I used STMCubeIDE to generate the following code...It is for Timer16 to count up and generate an interrupt after 100ms. Can someone tell me why the code did not set up __HAL_RCC_TIMx_CLK_ENABLE()?

When I use the IDE to generate GPIO stuff it automatically adds the RCC Enable bit into the INIT function

Thanks

Steve

This topic has been closed for replies.
SWenn.1
SWenn.1Best answer
Senior III
Jun 17, 2021 8:11 PM UTC

After digging around I see it did....I apologize....Not used to HAL layer design....Many macros compared to LL / register setting

Thank you.

2 replies

TDK
Jun 17, 2021 6:34 PM UTC

It should have. Attach your IOC file.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SWenn.1
SWenn.1AuthorBest answer
Senior III
Jun 17, 2021 8:11 PM UTC

After digging around I see it did....I apologize....Not used to HAL layer design....Many macros compared to LL / register setting

Thank you.