Content originally posted in LPCWare by Muis on Mon Mar 16 22:12:45 MST 2015
I started without CRP, and now I wanted to add it. I enabled it in the Linker settings, and I added:
__CRP const uint32_t CRP_WORD = CRP_NO_CRP ;
to my main.h. But now everytime the linker complains:
' multiple definition of `CRP_WORD'' and wont compile.
But if I comment out the CRP_WORD constant from my main.h, it complains:
Linker CRP Enabled, but no CRP_WORD provided within application
I am sure the CRP_WORD variabele exists only once in my project.
What can be the reason? The only things that are not standard about my project is that the stack is moved to USB ram and I use LTO optimization.