2021-06-17 09:22 AM
I am compiling the Discovery project from STM8 UM0991 "Debugging Discovery", for a new STM8L Discovery kit.
Processor target is STM8L152C6. Compiles fine in Debug mode.
Project is unmodified except for: go to Project | Settings | C Compiler" and add a Preprocessor definition of "STM8L15X_MD".
Rebuilt all files in Release mode, get the following errors:
#error clnk Release\discover.lkf:1 no default placement for segment .dataeeprom
#error clnk Release\discover.lkf:1 no default placement for segment .LPRUN
Go back to Debug, project compiles fine.
Did find the word "dataeeprom" in User/src/discover_functions.c, but don't understand the linker error solution.
Cosmic linker FAQ says this is caused by not having the -a or -b flags....
Already searched STM FAQ, Cosmic FAQ, and did web searches looking for a solution. Please help me get past this critical error.