-
Notifications
You must be signed in to change notification settings - Fork 62
Notes
Flashing the chip using "st-flash --format ihex write serial.hex" works fine, but the program fails to run when the MCU is reset.
TBD Possible leads: BOOT0 configuration
Discovered odd behavior when flashing new programs to the MCU. I.e - RXNE register wasn't getting set even though UART data was being transmitted to the MCU.
Perform a hardware reset (button if your board has it) before flashing the MCU.
Discovered more odd behavior when flashing new programs to the MCU. I.e - TIMER2 interrupt would crash the program after the first call.
Remove power from the device by disconnecting the st-link programmer tool and USB debug cable and wait a few seconds. Reconnect the USB debug cable. If this doesn't work, reset the MCU (using a the hardware reset button) several times. The root cause of this problem is tbd. Likely due to some odd configuration artifacts left over by the st-link programmer tool.