Semi-hosting SCANF build issue

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

Semi-hosting SCANF build issue

Jump to solution
558 Views
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

Labels (1)
0 Kudos
1 Solution
464 Views
converse
Senior Contributor V

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

View solution in original post

1 Reply
465 Views
converse
Senior Contributor V

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