I really just need to know where in the code it gets hung up. Is there a simple way to get the PC? Thanks in advance.
the trick of how to interperet is the problem and the realisation of what is just the problem
srp
Once I have a suspect, I may place some break points in that function to see if it reaches the breakpoint before it crashes. If it doesn’t I then move the breakpoint back. Seems to be better than running step by step which may be a lot of instructions.
https://www.ebay.com/itm/Arduino-Displa … 2716381764
Attached to pins B12,B13,B14,B15,A8,A9 and I add this function:
void debug (int level) {
oPB12 = ((level >> 0) & 1);
oPB13 = ((level >> 1) & 1);
oPB14 = ((level >> 2) & 1);
oPB15 = ((level >> 3) & 1);
oPA8 = ((level >> 4) & 1);
oPA9 = ((level >> 5) & 1);
}
and then before/after every while() loop and in every ISR I have a unique debug(xxx) call. If/when it drives off into oblivion, I then look to see what binary number is displayed on the LED module. This has already helped me catch miscellaneous defects. For a Dollar, those LED modules are worth their weight in gold.
The chip has extensive built in debug capabilities.
Select Debug in Optimize menu.
Then after building your sketch:
Launch
st-util– Do you produce the .ELF file in Arduino IDE ?
Maybe the Ultra Simple STM32 Debugger can help you



