Hi Alice,
I'm reviving this thread because I'm having the same problem Dave is and I don't think it really got answered.
There's been a lot of hardfault troubleshooting advice over the years, including a lot of passing the buck to the ARM documentation, and some useful links to Erich's blog, but with the addition of the (relatively) new 'faults' view in MCUXpresso it's hard to sort out which advice is current and relevant.
I'm attaching a screenshot of what I get when there's any hardfault. I don't remember where this fault handler code came from; I think it was the ARM documentation. But as you can see, the faults view shows "No faults", PC shows the current position in the hardfault handler, and the only way I see to get any information out of it is to step through until I get to the C portion where it copies out the fault arguments - and then I've got to inspect PC and plug that value into the disassembly view to see where the fault happened.
What is the sequence supposed to look like? Keeping in mind that I've already read the generic ARM documentation. MCUX's fault handling is of course not documented there.
Why is it the start of the hardfault handler that the IDE stops on? Why does the IDE seem to not know that it's looking at a fault? If it doesn't know there's a fault, why did it stop there?
Thanks,
Scott
