Skip to main content
jirre.1
Associate
May 1, 2021
Question

Feature Request: Place Default_Handler in stm32xxx_it.c

  • May 1, 2021
  • 1 reply
  • 741 views

Hi,

currently CubeIDE defines the Default_Handler inside the startup.S file, but it would be much more practical if it would get defined in stm32xxx_it.c.

That way users can more easily react if the Default_Handler is called.

This topic has been closed for replies.

1 reply

Pavel A.
Super User
May 2, 2021

stm32xxx_it.c (or other user's source file) can override all the "weak" handlers defined in the startup.s.

The  startup.s is considered a user file as well, it is copied into the project so that users can hack it as they like.

OTOH there was a good proposal to modernize the startup files, by Sven Köhler

Review of ST startup code