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: Dave McGuire <mcguire at neurotica dot com>, <newlib at sourceware dot org>
- Date: Wed, 8 Oct 2014 12:05:16 -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> <5433E587 dot 6060305 at codesourcery dot com> <5435681B dot 7040500 at neurotica dot com>
On 10/8/14 10:36 AM, Dave McGuire wrote:
> On 10/07/2014 09:07 AM, Jonathan Roelofs 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?
>
> Well I certainly didn't write it. ;) Isn't that in libgcc?
Yeah, that comes from libgcc. The pointed question was aimed at whether you were
using the one from llvm's compiler_rt, which had a bug which has subsequently
been fixed, that manifested itself in a similar manner. But since you're not
using that, it's probably not the same problem.
When your processor hangs, can you tell if it's hitting an interrupt, and if so
which one?
>
> -Dave
>
--
Jon Roelofs
jonathan@codesourcery.com
CodeSourcery / Mentor Embedded