Skip to main content
harryzz
Associate
February 26, 2016
Question

stm32f0 can't enter hardfault

  • February 26, 2016
  • 2 replies
  • 722 views
Posted on February 26, 2016 at 18:26

Hello

about 'bkpt' instruction and no debugger attached? ( semihosting problem)

I read that must be generated HardFault exception in this case but this never happens.

I have already tested HardFault vector with divide by zero and in this case works.

where is the problem?

br

Harry

#no-debugger #bkpt #hardfault
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    February 26, 2016
    Posted on February 26, 2016 at 19:30

    So what does happen when it encounters the BKPT ?

    Have you instrumented the Hard Fault handler in such a way that you can indicate entry to a terminal?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    harryzz
    harryzzAuthor
    Associate
    March 5, 2016
    Posted on March 05, 2016 at 10:36

    Hello

    Yes i have serial output also and no enter in HardFault handler - for sure. I think processor enters in lockout state.

    br

    Zahari