cancel
Showing results for 
Search instead for 
Did you mean: 

HAL & STM32CubeMx

MKent.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

> 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".

View solution in original post

1 REPLY 1
TDK
Guru

> 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".