stdio.h

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
1,601 次查看
schakoma
Contributor I

Hello. I am trying to read and write integers to a file using the getw() and putw() using the stdio.h. However each time I use these functions I get an error: no reference to putw() or getw(). How can I add these functions to stdio.h or are there other functions I can use to write integers to files. I am using MCUXpresso v11

0 项奖励
回复
1 解答
1,590 次查看
ErichStyger
Specialist I

Are you using a semihosting library? For example:

ErichStyger_0-1644309539973.png

Otherwise: I wrote recently about that topic here: https://mcuoneclipse.com/2022/01/25/semihosting-with-nxp-mcuxpresso-sdk-and-frdm-ke02z/

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,591 次查看
ErichStyger
Specialist I

Are you using a semihosting library? For example:

ErichStyger_0-1644309539973.png

Otherwise: I wrote recently about that topic here: https://mcuoneclipse.com/2022/01/25/semihosting-with-nxp-mcuxpresso-sdk-and-frdm-ke02z/

I hope this helps,

Erich

0 项奖励
回复