STM32: which "Generate IRQ Handler" checkboxes shall we tick in MX?

  1. On STM32, the three interrupts handlers provided by FreeRTOS are SysTick, PendSV, and SVCall (aka SVC). You should tell CubeMX not to generate handlers for those three.

  2. As for other interrupts, you need to divide them into two categories: those with ISRs that make FreeRTOS API calls, and those with ISRs that do not make FreeRTOS API calls.
    An ISR that makes API calls must use a lower priority (numerically higher) than configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY. An ISR that does not make API calls can use any interrupt priority.

1 Like