first post, perplexed by printf()

Jonathan Roelofs jonathan@codesourcery.com
Tue Oct 7 13:06:00 GMT 2014



On 10/3/14 1:13 AM, Freddie Chopin wrote:
> On 10/03/2014 05:42 AM, Dave McGuire wrote:
>> If I do printf("%d\n", 1); everything works fine.  If I do
>> printf("%d\n", 10);, my processor hangs.  (again with no debugging
Pointed question: where did you get your implementation of __aeabi_divmod?
>> support just yet, I don't know where)  In other words, as soon as I try
QEMU might be another option to get a debugger hooked up to inspect the thing at
runtime.

Cheers,
Jon

>> to format an integer with more than one digit, it hangs.  I can add
>> characters to the format string, and it works.  I've given it ever more
>> stack, no change. (I'm aware of printf()'s appetite for memory)

-- 
Jon Roelofs
jonathan@codesourcery.com
CodeSourcery / Mentor Embedded



More information about the Newlib mailing list