Skip to main content
SWenn.1
Senior III
June 17, 2021
Solved

CubeIDEMX doesnt' enable RCC bit?

  • June 17, 2021
  • 2 replies
  • 726 views

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.
Best answer by SWenn.1

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
Super User
June 17, 2021

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
June 17, 2021

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

Thank you.