Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

SDK • Re: A bizarre isr_hardfault

$
0
0
Your GDB log would make it look like it crashes in main(), or maybe when you attempt to transfer control to main().

In your GDB log, I see this:

Code:

454    ldr r1, =main(gdb) n455    blx r1
Rather than executing the next command after this, I would dump the contents of r1 to see if it looks valid and then attempt to step into the call to main() to see exactly where things go awry. So my next two commands would be the following:

Code:

(gdb) p/x $r1...(gdb) si...
The value of r1 should point to the beginning of your main function which you can get by disassembling it to see at which address it begins:

Code:

(gdb) disass main...[code]

Statistics: Posted by adam_green — Mon Mar 03, 2025 5:30 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles