MCUXpresso how to issue a GBD command to analyze hard faults

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso how to issue a GBD command to analyze hard faults

Jump to solution
1,195 Views
bp1979
Senior Contributor I

Hi,

Is it possible to issue gdb commands from MCUXpresso while debugging a hard fault e.g.? 

In platformio I could do this eg:

bp1979_0-1628836695159.png

Many thanks in advance

0 Kudos
1 Solution
1,185 Views
ErichStyger
Senior Contributor V

Have you seen the Faults view already?

ErichS_0-1628852858533.png

 

 

But of course you can execute any gdb commands or scripts too:

ErichS_1-1628853065076.png

 

Another easy way is to install a simple hard fault handler like the one described here:

https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/

 

I hope this helps,

Erich

View solution in original post

2 Replies
1,186 Views
ErichStyger
Senior Contributor V

Have you seen the Faults view already?

ErichS_0-1628852858533.png

 

 

But of course you can execute any gdb commands or scripts too:

ErichS_1-1628853065076.png

 

Another easy way is to install a simple hard fault handler like the one described here:

https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/

 

I hope this helps,

Erich

1,176 Views
bp1979
Senior Contributor I

Ah that simple... Thanks again!! 

0 Kudos