Hi! I just encountered a strange problem on my STM32F103 board.. I've written a very simple hard fault handler that sets a LED output and loops forever.
Everything works fine after initial power on. I can trigger a fault with an unaligned load multiple operation and the handler will get called. The problem is, that the handler won't get called after the chip has been flashed or "touched" by OpenOCD: source [find interface/jtagkey2.cfg] source [find target/stm32.cfg] reset init stm32x mass_erase 0 flash write_image test.elf reset run shutdown The chip will just halt after triggering the fault, and won't set the LED output. Even disconnecting the JTAG probe or resetting the chip won't help -- only a power-cycle will re-enable the ability to enter the hard-fault handler. The same behavior can be seen after a GDB session. The chip just won't execute hard-faults until the next power-cycle. How could this be fixed or explained? Best regards, Thomas Kindler _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development