KDS Error during biulding

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KDS Error during biulding

Jump to solution
4,086 Views
Msanad
Contributor II

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

Labels (1)
0 Kudos
Reply
1 Solution
4,068 Views
ErichStyger
Specialist I

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:

ErichStyger_0-1655394808749.png

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

View solution in original post

3 Replies
4,074 Views
Msanad
Contributor II

Well, I'm completely new to this tbh, but how can I make sure it's linked to the correct Libraries?

0 Kudos
Reply
4,069 Views
ErichStyger
Specialist I

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:

ErichStyger_0-1655394808749.png

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

4,077 Views
ErichStyger
Specialist I

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.