AnsweredAssumed Answered

M24LR discovery Linker error

Question asked by romero.roddy on Mar 11, 2014
Latest reply on Jun 6, 2014 by benike.pat
Hello, I am having an error message when I build my codes using the "release" mode in order to generate the .s19 file before programming my MCU.

Running Linker
clnk -lC:\Lib  -o Release\discover.sm8 Release\discover.lkf 
#error clnk Release\discover.lkf:1 no default placement for segment .dataeeprom
#error clnk Release\discover.lkf:1 no default placement for segment .DISPLAY
 The command: "clnk -lC:\Lib  -o Release\discover.sm8 Release\discover.lkf " has failed, the returned value is: 1

exit code=1.

Before that, I already built successfully my codes with the "debug" mode. The only thing I modified in my code for the "release" mode was that I uncommented one line which defined my target STM8L device in the stm8l15.h file. (I made this because when it was required when I build from the first time in the "release" mode).

I am using Cosmic and the codes are the original firmware that comes with the M24LR discovery kit. The codes were downloaded from http://www.st.com/web/en/catalog/tools/FM116/SC1444/PF253360</a> , part number STSW-M24LR016

Thanks in advance.

Outcomes