Skip to main content
RR.4
Associate
January 29, 2021
Question

Debug configuration for breakpoints (are they causing hardfault?)

  • January 29, 2021
  • 2 replies
  • 917 views

Hi everyone,

I'm developing using STM32F446 nucleo eval kit, and STM32Cube IDE.

In several escenarios, it's impossible to set a breakpoint, without get system jumps to hardfault.

If breakpoint is moved, hardfault too.

For example when using FatFS in some functions, like find. Also happends in other kind of code, not only with FatFS.

I notices this behaviour when started developing in C++.

Debugger stops, but suddenly, after a second, jumps to hardfault without touching anything.

Sometimes nothing happens until I hover over a variable to inspect its value.

Is there any spetial configuration to properly set breakpoints?

Is there something wrong with the code?

thanks very much in advance,

Rubén.

This topic has been closed for replies.

2 replies

Markus GIRDLAND
ST Employee
February 2, 2021

Hello Rubén,

I've tried to reproduce this but I wasn't able to.

My guess is that it's more in the application code. Does this happen with every project you have?

If you could share a project where I could test it and reproduce it I might be able to give you more information about the issue.

RR.4
RR.4Author
Associate
February 3, 2021

Hello Markus,

I'm looking to split the project into small part that reproduces issue and will share (need to ask my supervisor).

Thanks so much for your time in advance and hope in short be able to share with you.

Rubén.

Markus GIRDLAND
ST Employee
February 3, 2021

Ok, that sounds good! Feel free to send me a personal message with the project if that relieves any concerns your supervisor might have about sharing the project.