Semi-hosting SCANF build issue

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

Semi-hosting SCANF build issue

跳至解决方案
1,240 次查看
bburch
Contributor III

Hi!

I have an LPC824 project where flash is like 45% full with my code and PRINTF being used from RedLib Semihosting.

As soon as I try to use SCANF, however, we run out of space in the flash with this error;

Description Resource Path Location Type
lpcxpresso824max_ESARM.hex section `.text' will not fit in region `PROGRAM_FLASH' lpcxpresso824max_ESARM C/C++ Problem

Is this expected?  Is SCANF really that large?  Or am I missing something here?

If it is that large, is there any other way to get characters into the running program?  I want to use single characters to trigger behaviours I am testing ahead of the expected front end device integration.

Thanks!

-Ben Burch

BTR Controls

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,146 次查看
converse
Senior Contributor V

Use getc(), or getch() or getchar(). Standard C library functions 

在原帖中查看解决方案

1 回复
1,147 次查看
converse
Senior Contributor V

Use getc(), or getch() or getchar(). Standard C library functions