cancel
Showing results for 
Search instead for 
Did you mean: 

Debug configuration for breakpoints (are they causing hardfault?)

RR.4
Associate

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.

3 REPLIES 3
Markus GIRDLAND
ST Employee

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
Associate

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.

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.