Skip to main content
MKent.1
Visitor II
October 31, 2021
Solved

HAL & STM32CubeMx

  • October 31, 2021
  • 1 reply
  • 640 views

I will be working with some STM32F4 processors soon and so I am doing some reading ahead. What I am not clear on is if I use HAL to setup I/O or peripherals do I need to use STMCubeMX to set up the pins?

Can STMCubeMX (pin editor?) be opened from IDE?

MaryK

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

> What I am not clear on is if I use HAL to setup I/O or peripherals do I need to use STMCubeMX to set up the pins?

No, STM32CubeMX generates code that uses HAL, but you can use HAL without using the CubeMX generated code.

> Can STMCubeMX (pin editor?) be opened from IDE?

Yes, STM32CubeMX is integrated within STM32CubeIDE.

1 reply

TDK
TDKBest answer
October 31, 2021

> What I am not clear on is if I use HAL to setup I/O or peripherals do I need to use STMCubeMX to set up the pins?

No, STM32CubeMX generates code that uses HAL, but you can use HAL without using the CubeMX generated code.

> Can STMCubeMX (pin editor?) be opened from IDE?

Yes, STM32CubeMX is integrated within STM32CubeIDE.

"If you feel a post has answered your question, please click ""Accept as Solution""."