[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #24231] AVR Mistakes Value in Register
From: |
Chris Troutner |
Subject: |
[avr-libc-dev] [bug #24231] AVR Mistakes Value in Register |
Date: |
Tue, 09 Sep 2008 18:58:15 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 |
URL:
<http://savannah.nongnu.org/bugs/?24231>
Summary: AVR Mistakes Value in Register
Project: AVR C Runtime Library
Submitted by: troutner
Submitted on: Tue 09 Sep 2008 06:58:10 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: Unknown
Fixed Release: None
_______________________________________________________
Details:
In the attached files, you'll see the line inside the main() while() loop
with the instruction:
//Clear service variable
service = 0;
service is defined as a volatile uint8_t. When I run the JTAG mkII emulator,
the assembly code for this line is:
STS 0x0100,R1
0x0100 is the address where the value of service is stored. However, R1 is
always 0x01, not 0x00.
Chris Troutner
address@hidden
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 09 Sep 2008 06:58:11 PM GMT Name: makefile Size: 16kB By:
troutner
<http://savannah.nongnu.org/bugs/download.php?file_id=16457>
-------------------------------------------------------
Date: Tue 09 Sep 2008 06:58:11 PM GMT Name: periph_init.c Size: 9kB By:
troutner
<http://savannah.nongnu.org/bugs/download.php?file_id=16458>
-------------------------------------------------------
Date: Tue 09 Sep 2008 06:58:10 PM GMT Name: PIR2.c Size: 3kB By: troutner
<http://savannah.nongnu.org/bugs/download.php?file_id=16456>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?24231>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #24231] AVR Mistakes Value in Register,
Chris Troutner <=