2 years, 9 months ago.

fault hardfault

what can I do when I meet it? It is just running.

1 Answer

2 years, 9 months ago.

Hello Shang,

When you reach a hardfault, you need to enter a debugging session to step through your code to figure out where the hardfault is occurring. If it was a software hardfault, you will need to double check your logic. Usually a software hardfault is caused by buffer overflow. Hardware hardfaults occur when you are accessing a piece of hardware with lower privilege.

Please let me know if you have any questions!

- Peter, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!