cancel
Showing results for 
Search instead for 
Did you mean: 

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

sven
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

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.

View solution in original post

2 REPLIES 2
AScha.3
Chief II

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".
FBL
ST Employee

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.