Semi-hosting SCANF build issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Semi-hosting SCANF build issue

ソリューションへジャンプ
790件の閲覧回数
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 解決策
696件の閲覧回数
converse
Senior Contributor V

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

元の投稿で解決策を見る

1 返信
697件の閲覧回数
converse
Senior Contributor V

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