Skip to main content
ONaor
Visitor II
May 13, 2019
Question

__weak functions in stm32XXxx_it.c

  • May 13, 2019
  • 0 replies
  • 504 views

Is it possible to fix the CubeMX so that when it generates the code for STM32 chips it will add __weak declration to the following functions:

SysTick_Handler

PendSV_Handler

inside stm32XXxx_it.c

While intergrating to embOS, the OS api overrides these function and each time I make an adjustments to the cube it will delete the __weak decleration since there is /* USER CODE BEGIN */ in the prototypes

This topic has been closed for replies.