This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: first post, perplexed by printf()
- From: Jonathan Roelofs <jonathan at codesourcery dot com>
- To: Freddie Chopin <freddie_chopin at op dot pl>, <newlib at sourceware dot org>
- Date: Tue, 7 Oct 2014 07:07:19 -0600
- Subject: Re: first post, perplexed by printf()
- Authentication-results: sourceware.org; auth=none
- References: <542E1B16 dot 8050503 at neurotica dot com> <542E4C7D dot 3030500 at op dot pl>
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