This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Overwrite weak Systick_handler function

Hi all,

I want to overwrite the weak systick_handler function for a stm32f745 chip - it is labeled as weak in the Src\startup_stm32f745xx.s(258) :                 EXPORT  SysTick_Handler            [WEAK] 

startup file, but when I try to overwrite it anywhere else 

(using the extern "C" configuration)

I get this: Error: L6200E: Symbol SysTick_Handler multiply defined (by irq_cm4f.o and gpio_base.o)

NOTE: I cannot edit the startup file, it is locked to my project. 

Am I missing something else?

Thanks,

nmcq

Parents
  • In general, RTX_CM4F.lib needs to be in control of the Systick_Handler or the OS will not function properly.  Since this is a separate library, you would need to rebuild the library to remove the Systick_Handler that is contained within it.  It is not rebuilt based on you rebuilding your project.

    If you want to use the OS, then I would not attempt to make any changes to the Systick_Handler that the OS provides until you understand more.  Once you understand more, you will probably decide that it is just not a good idea to make any changes to this.  

Reply
  • In general, RTX_CM4F.lib needs to be in control of the Systick_Handler or the OS will not function properly.  Since this is a separate library, you would need to rebuild the library to remove the Systick_Handler that is contained within it.  It is not rebuilt based on you rebuilding your project.

    If you want to use the OS, then I would not attempt to make any changes to the Systick_Handler that the OS provides until you understand more.  Once you understand more, you will probably decide that it is just not a good idea to make any changes to this.  

Children