Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Us the BRK to shut down all timers generating an output.

Documentation here: Section 17.3.12

https://www.st.com/content/ccc/resource/technical/document/reference_manual/3d/6d/5a/66/b4/99/40/d4/DM00031020.pdf/files/DM00031020.pdf/jcr:content/translations/en.DM00031020.pdfMOE (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.

...