cancel
Showing results for 
Search instead for 
Did you mean: 

Feature Request: Place Default_Handler in stm32xxx_it.c

jirre.1
Associate II

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.

1 REPLY 1
Pavel A.
Evangelist III

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