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

SysTick Handler Multiply defined

Hi,

I am using NUCLEOL152RE board.I loaded X-NUCLEO-IKS01A1 example datalog project. I'm still fairly new to Keil so this may be a very silly question but when trying to compile a project, I get the following error:

project.sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

And i removed the scatter file.Now this error is replaced by the error
.\STM32L152RE_NUCLEO\Project.axf: Error: L6200E: Symbol SysTick_Handler multiply defined (by hal_cm3.o and stm32l1xx_it.o).

If i commented all those functions in stm32l1xx_it.c i will get the following error

.\STM32L152RE_NUCLEO\Project.axf: error: L6050U: The code size of this image (42830 bytes) exceeds the maximum allowed for this version of the linker.

Please help me to solve this errors.I would greatly appreciate if someone could help.

Regards
Krishnapriya.

Parents
  • Hi Krishnapriya,

    the demo/evaluation-Version of Keil is code size restricted to 32 kB. You Need to have a license to link programs bigger than 32 kB. Maybe try to vary the Compiler-optimization in the "Options for Target/C/C++"-tab. That might reduce the generated code-size. When this doesn't help you may be able to remove some modules you don't Need in order to decrease the code-size of your program. Version 5.16 of Keil is also code-size-restricted, so installing that will not help.

    Greetings, Niclas

Reply
  • Hi Krishnapriya,

    the demo/evaluation-Version of Keil is code size restricted to 32 kB. You Need to have a license to link programs bigger than 32 kB. Maybe try to vary the Compiler-optimization in the "Options for Target/C/C++"-tab. That might reduce the generated code-size. When this doesn't help you may be able to remove some modules you don't Need in order to decrease the code-size of your program. Version 5.16 of Keil is also code-size-restricted, so installing that will not help.

    Greetings, Niclas

Children