AVR C Runtime Library - Bugs: bug #25062, sprintf_P and family problem on...
You are not allowed to post comments on this tracker with your current authentication level.
bug #25062: sprintf_P and family problem on ATXMega128a1
Submitter: | Sebastian Schocke <sschocke> | ||
Submitted: | Wed 10 Dec 2008 01:22:32 PM UTC | ||
Votes: | 10 | ||
Category: | None | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | Invalid | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Closed |
Release: | 1.6.4 | Fixed Release: | None |
Wed 07 Jan 2009 12:41:27 PM UTC, comment #1: |
Anatoly Sokolov <aesok> |
Wed 10 Dec 2008 01:22:32 PM UTC, original submission:
After tracing the program flow through the simulator on AVR Studio, I have found that if I call sprintf_P, or any of the printf or scanf functions, the Stack Pointer(SP) on the ATXMega128a1 is changed to a constant value. This value is constant no matter what my previous SP value was, and changes to the following value: 0x3FD8
|
Sebastian Schocke <sschocke> |
Depends on the following items: None found
Items that depend on this one: None found
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-01-07 | aesok | Category | Library | None | |
Item Group | libc code | None | |||
Status | None | Invalid | |||
Open/Closed | Open | Closed | |||
2008-12-10 | sschocke | Carbon-Copy | - | Added sschocke | |
2008-12-10 | sschocke | Attached File | - | Added test_spf.zip, #17017 |
Powered by Savane 3.13-02a9.
Corresponding source code
This not avr-libc bug, this is avr-gcc bug.
More, sourceforge.net bug [ 2490164 ]:
XMega (128A1): subroutine calling may corrupt stack pointer
http://sourceforge.net/tracker/index.php?func=detail&aid=2490164&group_id=68108&atid=520074