avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [avr-gcc-list] WinAVR - gcc 3.4.6 - AVR Studio - DuoCore PC -Stackpo


From: Ernst Stippl
Subject: AW: [avr-gcc-list] WinAVR - gcc 3.4.6 - AVR Studio - DuoCore PC -Stackpointer problem
Date: Tue, 21 Nov 2006 21:25:16 +0100

Hi!

>From a message posted into the Ethernut Form during spring 2005, there was a
reference to 

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=146725#146
725

which talks about problems in the AT90CAN128 

On the other hand, have you checked what's the difference in the binaries
compiled on the single / dual core machines , if any?

regards
ernst 

-----Ursprüngliche Nachricht-----
Von: address@hidden
[mailto:address@hidden Im Auftrag von
Steffen Rose
Gesendet: Dienstag, 21. November 2006 15:00
An: address@hidden
Betreff: [avr-gcc-list] WinAVR - gcc 3.4.6 - AVR Studio - DuoCore PC
-Stackpointer problem

Hello,

our Sourcecode compiled on different PCs with WinAVR works correctly. But we
have one PC, where compiled the same Source, the binary is corrupt. If this
binary flashed on a AT90CAN128, the Stackpointer Highbyte will corrupt
anytime.

On the same binary the problem is after the same actions. After little
changes the needed actions are different. Every time on debugging the
problem is after a function entry if the Stack frame for the local variables
will calculate. Y is correct (AVR Studio syntax - frame pointer), SPH is
wrong.

The PC is an DuoCore PC. The corrupt compilation is done with the AVR Studio
IDE and WinAVR with avr-gcc 3.4.6.

The working compilation is done on "SingleCore" PCs with cygwin make
(complete cygwin, not the minimal version from WinAVR).

The Option -O0 and -Os with and without -mcall-prologues have the same
effect in this case.

Code generation depend options:
-mmcu=at90can128 -std=gnu99 -Os -mcall-prologues -funsigned-char
-funsigned-bitfields -fpack-struct -fshort-enums

Have anyone see a similar problem and can give a hint, what we can check?

--
Regards
Steffen Rose



_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 20.11.2006



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 20.11.2006






reply via email to

[Prev in Thread] Current Thread [Next in Thread]