KDS Error during biulding

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KDS Error during biulding

跳至解决方案
4,085 次查看
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

标签 (1)
0 项奖励
回复
1 解答
4,067 次查看
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

在原帖中查看解决方案

3 回复数
4,073 次查看
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 项奖励
回复
4,068 次查看
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,076 次查看
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.