Re: Getting stuck in _up_assert()

2020-11-23 Thread Nathan Hartman
On Mon, Nov 23, 2020 at 5:18 PM Gregory Nutt wrote: > You can try the section on hardfault debugging here: > https://nuttx.events/wp-content/uploads/2019/11/DSidrane_nx2019.pdf That > starts at slide 17: > > /Set a breakpoint on up_hardfault and up_assert//Set the PC equal to > the LR//Se

Re: Getting stuck in _up_assert()

2020-11-23 Thread Matias N.
I'm thiking that we could extend nuttx-gdbinit so that it offers an easy way to see registeres from CURRENT_REGS so that you can get a register dump without a console. Also, we could have a function that could take the LR and set the PC in order to go to most likely place of hardfault automatica

Re: Getting stuck in _up_assert()

2020-11-23 Thread Gregory Nutt
You can try the section on hardfault debugging here: https://nuttx.events/wp-content/uploads/2019/11/DSidrane_nx2019.pdf That starts at slide 17: /Set a breakpoint on up_hardfault and up_assert//Set the PC equal to the LR//Select assembly single step//And step to bx lr instruction in d