Hi,
I'm using KDS on a project with the MKL03z controller.
The current problem is that it doesn't build anymore.
The same code was biulding succesfuly, only modified the MOD value using the component inspector then got the error.
I get this message in the console:
"collect2.exe: error: ld returned 1 exit status"
"makefile:74: recipe for target 'new hello II.elf' failed"
"make: *** [new hello II.elf] Error 1"
I tried cleaning then rebuilding but in vain. Also tried some solutions for similar problems but the same error exists.
Any help would be much appreciated
MSanad
Solved! Go to Solution.
It all depends what you are doing in your application, and for example if you are using semihosting?
About semihosting, for example see https://mcuoneclipse.com/2014/06/06/semihosting-with-kinetis-design-studio/
If you need to add 'empty' wrappers, then you have to add the nosys.specs:
In general on that topic, I recommend to have a read here:
https://mcuoneclipse.com/2014/07/11/printf-and-scanf-with-gnu-arm-libraries/
I hope this helps,
Erich
Well, I'm completely new to this tbh, but how can I make sure it's linked to the correct Libraries?
It all depends what you are doing in your application, and for example if you are using semihosting?
About semihosting, for example see https://mcuoneclipse.com/2014/06/06/semihosting-with-kinetis-design-studio/
If you need to add 'empty' wrappers, then you have to add the nosys.specs:
In general on that topic, I recommend to have a read here:
https://mcuoneclipse.com/2014/07/11/printf-and-scanf-with-gnu-arm-libraries/
I hope this helps,
Erich
Your console view shows that the linker cannot find things like _read. It seems that you are trying to use the I/O library (reading/writing files, e.g. with semihosting), but have not linked with the correct library.