Closed davutcanakbas closed 2 years ago
I had a similar problem. I determined that I wasn't initializing my huart properly. Mainly, I detemined that the __HAL_DMA_GET_COUNTER(huart-> hdmarx)
part of this line is what was causing my error.
If you're not using the example project or using a different board, I'd suggest using the .ioc file from one of the examples to make sure you give the correct parameters to your board's specific UART port.
If you determine you're initilizing it properly, then the error might be not associating the huart pointer to the "STM32Hardware.h" file.
While doing all the necessary steps and debugging through Stm32F407, it enters the HardFault_Handler interrupt and the program does not run. When I examine the stage after which it entered, it enters after the following line of "STM32Hardware.h" file.
Any advice please.