cancel
Showing results for 
Search instead for 
Did you mean: 

''HardFault_Handler'' function after SPI1 initialization. MCU: STM32-F030K6 How can detect bugs. please reply.(Code generated in STM32CubeMX)

Niranjan Kumar
Associate
Posted on June 30, 2017 at 12:16

Problem:

go to

'void HardFault_Handler(void)'

function after SPI1 initialization.

MCU: STM32-F030K6

How can detect bugs.

please reply.

Note:

Its working on STM32-F030R8 nucleo  board. 

2 REPLIES 2
Tilen MAJERLE
ST Employee
Posted on June 30, 2017 at 13:37

Hello

KUMAR.NIRANJAN

‌,

we need more informations here:

  • What library is used?
  • Is it even library or is plan register access?

From current info, we are not able to know what the issue is. Please provide as much info as possible.

Posted on July 01, 2017 at 05:53

Thanks for reply.

1. HAL library Cortex M0 ARM compiler.

2. It is library only generated by CubeMx only.

Problem: After initialization of SPI1 then use HAL SPI Transmit and go to Hardfault interrupts is generated.

Please reply or any article related for the same.

Majerle.Tilen