[arm-gnu] strtoull - Newlib C Library - NoGo
Carlos O'Donell
carlos_odonell at mentor.com
Thu Aug 16 21:01:10 UTC 2012
On 8/16/2012 4:10 PM, Peter Seng wrote:
> Hello,
>
> for me there is a problem with the use of the Newlib C Library
> (1.18.0-sg++) (stdlib.h) included in “Sourcery CodeBench Lite”. When
> including function “strtoull” in program code, communication via USART
> switches to baudrate x 4 (?!), sometimes HardFault_Handler interrupt
> occurs.
> No error messages, no warnings during compile and run (when not
> HardFault), other part of program seems to run correctly. Same behavior
> when using 2011.03 / 2011.09 and 2012.03 versions of Sourcery Codebench
> Lite.
> Function “strtoul” seems to be not affected, other functions out of this
> library are working without problems since months.
>
> Any ideas?
Look for stack corruption when you call strtoull?
Is the stack correctly aligned when the function call is made?
Is another function misaligning the stack?
Cheers,
Carlos.
--
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell at mentor.com
carlos at codesourcery.com
+1 (613) 963 1026
More information about the arm-gnu
mailing list