Keil Logo

ARMLINK: Error: L6200E: Symbol SysTick_Handler multiply defined


Information in this knowledgebase article applies to:

  • MDK-ARM
  • CMSIS-Core

SYMPTOM

I have added a SysTick_Handler function to my application (in the file blinky.c) and now I am getting the following linker messages when I build the project:

.\Flash\Blinky.axf: Error: L6200E: Symbol SysTick_Handler multiply defined
       (by hal_cm3.o and blinky.o).
Not enough information to list image symbols.
Not enough information to list the image map.

CAUSE

The error message indicates that the application implements already a SysTick_Handler in the module hal_cm3.o. It is not possible to overwrite this interrupt handler and therefore the linker issues a error that indicates this multiple definitions.

RESOLUTION

The module hal_cm3.o is part of the CMSIS-RTOS RTX library. You can identify the exact library by using the ARM linker command line option --show_parent_lib and --show_full_path. In µVision these options under Project - Options for Target - Linker. Enter under Misc Controls:

--show_parent_lib --show_full_path

Now the linker error includes the full file name of the library:

.\Flash\Blinky.axf: Error: L6200E: Symbol SysTick_Handler multiply defined
       (by C:\Keil_v5\ARM\PACK\ARM\..\CMSIS\RTOS\RTX\LIB\ARM\RTX_CM3.lib(hal_cm3.o)
           and .\flash\blinky.o).

The library file RTX_CM3.lib relates to a Software Component that can be identified in the Project Window. Once this Software Component is removed from the project the second definition of the SysTick_Handler function disappears and the error does no longer occur.

MORE INFORMATION

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Wednesday, August 19, 2015


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.