Skip to main content
sven
Associate II
October 12, 2023
Solved

Is it possible to generate CubeMX Code bare Metal? Without Hal?

  • October 12, 2023
  • 2 replies
  • 1776 views

Because I don't want use HAL , but want use the possibility to configure pins with CubeMX

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

Hello @sven

 

STM32CubeMX supports custom code generation by means of a FreeMarker template. Check the UM1718 section 6.3 Custom code generation.

 

2 replies

AScha.3
Super User
October 12, 2023

on many peripherals you can choose also LL (low level ) lib , or HAL.

+

you can also use cube/HAL or LL just to do init (as i do sometimes) and then in program write direct to registers for max. speed. (if possible...no good idea for USB communication, for example)

"If you feel a post has answered your question, please click ""Accept as Solution""."
FBLBest answer
Technical Moderator
October 12, 2023

Hello @sven

 

STM32CubeMX supports custom code generation by means of a FreeMarker template. Check the UM1718 section 6.3 Custom code generation.

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.Best regards,FBL