cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery - Failed inits after pressing reset button

Rui Loureiro
Associate II
Posted on March 19, 2017 at 00:16

I'm trying to get the CAN1 on my stm32f4 board to work. The first time I turn the board on, the code works no problem, but when I press the reset button, sometimes I get an error initialising the CAN peripheral.

I've tried calling HAL_CAN_DeInit, before HAL_CAN_Init, but with no success.

What am I missing?

#can #stm32f4-discovery
1 REPLY 1
Posted on March 20, 2017 at 03:07

Does the error provide any specificity? Can you determine any from walking the code in the driver?

Can you try reviewing the state of the pins?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..