Skip to main content
Niranjan Kumar
Associate
Jun 30, 2017 10:16 AM UTC
Question

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

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. 

    This topic has been closed for replies.

    2 replies

    Tilen MAJERLE
    ST Employee
    Jun 30, 2017 11:37 AM UTC
    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.

    Niranjan Kumar
    Associate
    Jul 1, 2017 5:53 AM UTC
    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