Hardfault Shutdown

The Plan

In the “stm32f0xx_it.c” file add code to the HardFault_Handler.

Us the MOE (Master Output Enable) Bit to turn off htim 1 and htim 3 outputs to motors.

use:

__HAL_TIM_MOE_DISABLE(&htim#);

Backup Plan

Just set the compare register for each timer so that control (PWM) line pulled low.

Process: