STM32 HAL Questions

Thread Starter

ApacheKid

Joined Jan 12, 2015
1,095
I can see that there's a HAL_DeInit function available, does that effectively "reset" all peripherals? If I have code that sets up some peripherals, runs for a few minutes then wants to setup those peripherals in a completely different manner, should the app call HAL_DeInit and HAL_Init again? followed by the various individual peripheral configuration?
 

MrChips

Joined Oct 2, 2009
27,726
If you look at function main(void) in main.c you will notice that HAL_Init( ) is the first function called.
You don't want to call HAL_DeInit( ) after that.
 
Top