20131005-003638

This commit is contained in:
BlubbFish 2013-10-04 22:36:29 +00:00
parent af6d4859d2
commit 50906f094b
9 changed files with 264 additions and 239 deletions

View File

@ -78,7 +78,7 @@ LIB_DEP+=
./%.o: .././%.c
@echo Building file: $<
@echo Invoking: AVR/GNU C Compiler :
$(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -funsigned-char -funsigned-bitfields -DDEBUG -O1 -ffunction-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=attiny2313 -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o"$@" "$<"
$(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -funsigned-char -funsigned-bitfields -DDEBUG -O1 -ffunction-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega32u2 -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o"$@" "$<"
@echo Finished building: $<
@ -106,7 +106,7 @@ all: $(OUTPUT_FILE_PATH) $(ADDITIONAL_DEPENDENCIES)
$(OUTPUT_FILE_PATH): $(OBJS) $(USER_OBJS) $(OUTPUT_FILE_DEP) $(LIB_DEP)
@echo Building target: $@
@echo Invoking: AVR/GNU Linker :
$(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -Wl,-Map="Test.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=attiny2313
$(QUOTE)C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -Wl,-Map="Test.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=atmega32u2
@echo Finished building target: $@
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature "Test.elf" "Test.hex"
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.876\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "Test.elf" "Test.eep" || exit 0

View File

@ -4,7 +4,7 @@ Test.d Test.o: .././Test.c \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/inttypes.h \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/include/stdint.h \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/stdint.h \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/iotn2313.h \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/iom32u2.h \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/portpins.h \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/common.h \
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/version.h \
@ -24,7 +24,7 @@ c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/stdint.h:
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/iotn2313.h:
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/iom32u2.h:
c:\program\ files\ (x86)\atmel\atmel\ toolchain\avr8\ gcc\native\3.4.2.876\avr8-gnu-toolchain\bin\../lib/gcc/avr/4.7.2/../../../../avr/include/avr/portpins.h:

Binary file not shown.

View File

@ -1,7 +1,11 @@
:1000000012C017C016C015C014C013C012C011C052
:1000100010C00FC00EC00DC00CC00BC00AC009C07C
:1000200008C007C006C011241FBECFEDCDBF02D04F
:1000300010C0E6CF8E9A90E482B3892782BB2FE767
:100040003AE186E0215030408040E1F700C00000F6
:06005000F3CFF894FFCF8E
:100000000C943A000C9444000C9444000C9444006A
:100010000C9444000C9444000C9444000C94440050
:100020000C9444000C9444000C9444000C94440040
:100030000C9444000C9444000C9444000C94440030
:100040000C9444000C9444000C9444000C94440020
:100050000C9444000C9444000C9444000C94440010
:100060000C9444000C9444000C9444000C94440000
:100070000C94440011241FBECFEFD4E0DEBFCDBFEF
:100080000E9446000C944E000C94000084B1806ED7
:1000900084B990E485B1892785B9FCCFF894FFCF66
:00000001FF

View File

@ -3,99 +3,101 @@ Test.elf: file format elf32-avr
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000056 00000000 00000000 00000074 2**1
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000000 00800060 00000056 000000ca 2**0
0 .data 00000000 00800100 000000a0 00000114 2**0
CONTENTS, ALLOC, LOAD, DATA
2 .stab 000006b4 00000000 00000000 000000cc 2**2
1 .text 000000a0 00000000 00000000 00000074 2**1
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .stab 000006cc 00000000 00000000 00000114 2**2
CONTENTS, READONLY, DEBUGGING
3 .stabstr 00000082 00000000 00000000 00000780 2**0
3 .stabstr 00000082 00000000 00000000 000007e0 2**0
CONTENTS, READONLY, DEBUGGING
4 .comment 0000002f 00000000 00000000 00000802 2**0
4 .comment 0000002f 00000000 00000000 00000862 2**0
CONTENTS, READONLY
5 .debug_aranges 00000020 00000000 00000000 00000831 2**0
5 .debug_aranges 00000020 00000000 00000000 00000891 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_info 0000012b 00000000 00000000 00000851 2**0
6 .debug_info 00000087 00000000 00000000 000008b1 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_abbrev 000000d0 00000000 00000000 0000097c 2**0
7 .debug_abbrev 00000053 00000000 00000000 00000938 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_line 0000017d 00000000 00000000 00000a4c 2**0
8 .debug_line 000000d7 00000000 00000000 0000098b 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_frame 00000024 00000000 00000000 00000bcc 2**2
9 .debug_frame 00000024 00000000 00000000 00000a64 2**2
CONTENTS, READONLY, DEBUGGING
10 .debug_str 000000d8 00000000 00000000 00000bf0 2**0
10 .debug_str 0000007c 00000000 00000000 00000a88 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_ranges 00000010 00000000 00000000 00000cc8 2**0
11 .debug_ranges 00000010 00000000 00000000 00000b04 2**0
CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:
00000000 <__vectors>:
0: 12 c0 rjmp .+36 ; 0x26 <__ctors_end>
2: 17 c0 rjmp .+46 ; 0x32 <__bad_interrupt>
4: 16 c0 rjmp .+44 ; 0x32 <__bad_interrupt>
6: 15 c0 rjmp .+42 ; 0x32 <__bad_interrupt>
8: 14 c0 rjmp .+40 ; 0x32 <__bad_interrupt>
a: 13 c0 rjmp .+38 ; 0x32 <__bad_interrupt>
c: 12 c0 rjmp .+36 ; 0x32 <__bad_interrupt>
e: 11 c0 rjmp .+34 ; 0x32 <__bad_interrupt>
10: 10 c0 rjmp .+32 ; 0x32 <__bad_interrupt>
12: 0f c0 rjmp .+30 ; 0x32 <__bad_interrupt>
14: 0e c0 rjmp .+28 ; 0x32 <__bad_interrupt>
16: 0d c0 rjmp .+26 ; 0x32 <__bad_interrupt>
18: 0c c0 rjmp .+24 ; 0x32 <__bad_interrupt>
1a: 0b c0 rjmp .+22 ; 0x32 <__bad_interrupt>
1c: 0a c0 rjmp .+20 ; 0x32 <__bad_interrupt>
1e: 09 c0 rjmp .+18 ; 0x32 <__bad_interrupt>
20: 08 c0 rjmp .+16 ; 0x32 <__bad_interrupt>
22: 07 c0 rjmp .+14 ; 0x32 <__bad_interrupt>
24: 06 c0 rjmp .+12 ; 0x32 <__bad_interrupt>
0: 0c 94 3a 00 jmp 0x74 ; 0x74 <__ctors_end>
4: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
8: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
c: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
10: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
14: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
18: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
1c: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
20: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
24: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
28: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
2c: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
30: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
34: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
38: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
3c: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
40: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
44: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
48: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
4c: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
50: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
54: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
58: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
5c: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
60: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
64: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
68: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
6c: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
70: 0c 94 44 00 jmp 0x88 ; 0x88 <__bad_interrupt>
00000026 <__ctors_end>:
26: 11 24 eor r1, r1
28: 1f be out 0x3f, r1 ; 63
2a: cf ed ldi r28, 0xDF ; 223
2c: cd bf out 0x3d, r28 ; 61
2e: 02 d0 rcall .+4 ; 0x34 <main>
30: 10 c0 rjmp .+32 ; 0x52 <_exit>
00000074 <__ctors_end>:
74: 11 24 eor r1, r1
76: 1f be out 0x3f, r1 ; 63
78: cf ef ldi r28, 0xFF ; 255
7a: d4 e0 ldi r29, 0x04 ; 4
7c: de bf out 0x3e, r29 ; 62
7e: cd bf out 0x3d, r28 ; 61
80: 0e 94 46 00 call 0x8c ; 0x8c <main>
84: 0c 94 4e 00 jmp 0x9c ; 0x9c <_exit>
00000032 <__bad_interrupt>:
32: e6 cf rjmp .-52 ; 0x0 <__vectors>
00000088 <__bad_interrupt>:
88: 0c 94 00 00 jmp 0 ; 0x0 <__vectors>
00000034 <main>:
0000008c <main>:
int main(void)
{
DDRD |= (1<<PIND6);
34: 8e 9a sbi 0x11, 6 ; 17
DDRB |= (1<<PINB7) | (1<<PINB6) | (1<<PINB5);
8c: 84 b1 in r24, 0x04 ; 4
8e: 80 6e ori r24, 0xE0 ; 224
90: 84 b9 out 0x04, r24 ; 4
while(1)
{
PORTD ^= (1<<PIND6);
36: 90 e4 ldi r25, 0x40 ; 64
38: 82 b3 in r24, 0x12 ; 18
3a: 89 27 eor r24, r25
3c: 82 bb out 0x12, r24 ; 18
#else
//round up by default
__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
#endif
//PORTB ^= (1<<PINB7);
//_delay_us(10000);
//PORTB ^= (1<<PINB7);
PORTB ^= (1<<PINB6);
92: 90 e4 ldi r25, 0x40 ; 64
94: 85 b1 in r24, 0x05 ; 5
96: 89 27 eor r24, r25
98: 85 b9 out 0x05, r24 ; 5
9a: fc cf rjmp .-8 ; 0x94 <main+0x8>
__builtin_avr_delay_cycles(__ticks_dc);
3e: 2f e7 ldi r18, 0x7F ; 127
40: 3a e1 ldi r19, 0x1A ; 26
42: 86 e0 ldi r24, 0x06 ; 6
44: 21 50 subi r18, 0x01 ; 1
46: 30 40 sbci r19, 0x00 ; 0
48: 80 40 sbci r24, 0x00 ; 0
4a: e1 f7 brne .-8 ; 0x44 <__SREG__+0x5>
4c: 00 c0 rjmp .+0 ; 0x4e <__SREG__+0xf>
4e: 00 00 nop
50: f3 cf rjmp .-26 ; 0x38 <main+0x4>
0000009c <_exit>:
9c: f8 94 cli
00000052 <_exit>:
52: f8 94 cli
00000054 <__stop_program>:
54: ff cf rjmp .-2 ; 0x54 <__stop_program>
0000009e <__stop_program>:
9e: ff cf rjmp .-2 ; 0x9e <__stop_program>

View File

@ -1,31 +1,31 @@
Archive member included because of file (symbol)
c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o (exit)
c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o (exit)
Discarded input sections
.bss 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
.bss 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
.text 0x00000000 0x0 Test.o
.bss 0x00000000 0x0 Test.o
.text 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
.bss 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
.text 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
.bss 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
.text.libgcc.mul
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
.text.libgcc.div
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
.text.libgcc 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
.text.libgcc 0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
.text.libgcc.prologue
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
.text.libgcc.builtins
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
.text.libgcc.fmul
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
0x00000000 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
Memory Configuration
Name Origin Length Attributes
text 0x00000000 0x00002000 xr
text 0x00000000 0x00010000 xr
data 0x00800060 0x0000ffa0 rw !x
eeprom 0x00810000 0x00010000 rw !x
fuse 0x00820000 0x00000400 rw !x
@ -36,14 +36,15 @@ user_signatures 0x00850000 0x00000400 rw !x
Linker script and memory map
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
Address of section .data set to 0x800100
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
LOAD Test.o
START GROUP
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack\libm.a
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35\libm.a
END GROUP
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack\libc.a
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35\libc.a
LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a
.hash
*(.hash)
@ -135,40 +136,40 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8
.rela.plt
*(.rela.plt)
.text 0x00000000 0x56
.text 0x00000000 0xa0
*(.vectors)
.vectors 0x00000000 0x26 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
.vectors 0x00000000 0x74 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
0x00000000 __vector_default
0x00000000 __vectors
*(.vectors)
*(.progmem.gcc*)
*(.progmem*)
0x00000026 . = ALIGN (0x2)
0x00000026 __trampolines_start = .
0x00000074 . = ALIGN (0x2)
0x00000074 __trampolines_start = .
*(.trampolines)
.trampolines 0x00000026 0x0 linker stubs
.trampolines 0x00000074 0x0 linker stubs
*(.trampolines*)
0x00000026 __trampolines_end = .
0x00000074 __trampolines_end = .
*(.jumptables)
*(.jumptables*)
*(.lowtext)
*(.lowtext*)
0x00000026 __ctors_start = .
0x00000074 __ctors_start = .
*(.ctors)
0x00000026 __ctors_end = .
0x00000026 __dtors_start = .
0x00000074 __ctors_end = .
0x00000074 __dtors_start = .
*(.dtors)
0x00000026 __dtors_end = .
0x00000074 __dtors_end = .
SORT(*)(.ctors)
SORT(*)(.dtors)
*(.init0)
.init0 0x00000026 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
0x00000026 __init
.init0 0x00000074 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
0x00000074 __init
*(.init0)
*(.init1)
*(.init1)
*(.init2)
.init2 0x00000026 0x8 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
.init2 0x00000074 0xc c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
*(.init2)
*(.init3)
*(.init3)
@ -183,38 +184,48 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8
*(.init8)
*(.init8)
*(.init9)
.init9 0x0000002e 0x4 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
.init9 0x00000080 0x8 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
*(.init9)
*(.text)
.text 0x00000032 0x2 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
0x00000032 __vector_1
0x00000032 __vector_12
0x00000032 __bad_interrupt
0x00000032 __vector_6
0x00000032 __vector_3
0x00000032 __vector_11
0x00000032 __vector_13
0x00000032 __vector_17
0x00000032 __vector_7
0x00000032 __vector_5
0x00000032 __vector_4
0x00000032 __vector_9
0x00000032 __vector_2
0x00000032 __vector_15
0x00000032 __vector_8
0x00000032 __vector_14
0x00000032 __vector_10
0x00000032 __vector_16
0x00000032 __vector_18
0x00000034 . = ALIGN (0x2)
.text 0x00000088 0x4 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
0x00000088 __vector_22
0x00000088 __vector_28
0x00000088 __vector_1
0x00000088 __vector_24
0x00000088 __vector_12
0x00000088 __bad_interrupt
0x00000088 __vector_6
0x00000088 __vector_3
0x00000088 __vector_23
0x00000088 __vector_25
0x00000088 __vector_11
0x00000088 __vector_13
0x00000088 __vector_17
0x00000088 __vector_19
0x00000088 __vector_7
0x00000088 __vector_27
0x00000088 __vector_5
0x00000088 __vector_4
0x00000088 __vector_9
0x00000088 __vector_2
0x00000088 __vector_21
0x00000088 __vector_15
0x00000088 __vector_8
0x00000088 __vector_26
0x00000088 __vector_14
0x00000088 __vector_10
0x00000088 __vector_16
0x00000088 __vector_18
0x00000088 __vector_20
0x0000008c . = ALIGN (0x2)
*(.text.*)
.text.main 0x00000034 0x1e Test.o
0x00000034 main
0x00000052 . = ALIGN (0x2)
.text.main 0x0000008c 0x10 Test.o
0x0000008c main
0x0000009c . = ALIGN (0x2)
*(.fini9)
.fini9 0x00000052 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
0x00000052 _exit
0x00000052 exit
.fini9 0x0000009c 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
0x0000009c _exit
0x0000009c exit
*(.fini9)
*(.fini8)
*(.fini8)
@ -233,39 +244,39 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8
*(.fini1)
*(.fini1)
*(.fini0)
.fini0 0x00000052 0x4 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
.fini0 0x0000009c 0x4 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
*(.fini0)
0x00000056 _etext = .
0x000000a0 _etext = .
.data 0x00800060 0x0 load address 0x00000056
0x00800060 PROVIDE (__data_start, .)
.data 0x00800100 0x0 load address 0x000000a0
0x00800100 PROVIDE (__data_start, .)
*(.data)
.data 0x00800060 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
.data 0x00800060 0x0 Test.o
.data 0x00800060 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr25/tiny-stack\libgcc.a(_exit.o)
.data 0x00800100 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
.data 0x00800100 0x0 Test.o
.data 0x00800100 0x0 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/avr35\libgcc.a(_exit.o)
*(.data*)
*(.rodata)
*(.rodata*)
*(.gnu.linkonce.d*)
0x00800060 . = ALIGN (0x2)
0x00800060 _edata = .
0x00800060 PROVIDE (__data_end, .)
0x00800100 . = ALIGN (0x2)
0x00800100 _edata = .
0x00800100 PROVIDE (__data_end, .)
.bss 0x00800060 0x0
0x00800060 PROVIDE (__bss_start, .)
.bss 0x00800100 0x0
0x00800100 PROVIDE (__bss_start, .)
*(.bss)
*(.bss*)
*(COMMON)
0x00800060 PROVIDE (__bss_end, .)
0x00000056 __data_load_start = LOADADDR (.data)
0x00000056 __data_load_end = (__data_load_start + SIZEOF (.data))
0x00800100 PROVIDE (__bss_end, .)
0x000000a0 __data_load_start = LOADADDR (.data)
0x000000a0 __data_load_end = (__data_load_start + SIZEOF (.data))
.noinit 0x00800060 0x0
0x00800060 PROVIDE (__noinit_start, .)
.noinit 0x00800100 0x0
0x00800100 PROVIDE (__noinit_start, .)
*(.noinit*)
0x00800060 PROVIDE (__noinit_end, .)
0x00800060 _end = .
0x00800060 PROVIDE (__heap_start, .)
0x00800100 PROVIDE (__noinit_end, .)
0x00800100 _end = .
0x00800100 PROVIDE (__heap_start, .)
.eeprom 0x00810000 0x0
*(.eeprom*)
@ -286,13 +297,13 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8
.user_signatures
*(.user_signatures*)
.stab 0x00000000 0x6b4
.stab 0x00000000 0x6cc
*(.stab)
.stab 0x00000000 0x6b4 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
.stab 0x00000000 0x6cc c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
.stabstr 0x00000000 0x82
*(.stabstr)
.stabstr 0x00000000 0x82 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr25/tiny-stack/crttn2313.o
.stabstr 0x00000000 0x82 c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.7.2/../../../../avr/lib/avr35/crtm32u2.o
.stab.excl
*(.stab.excl)
@ -331,27 +342,27 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8
.debug_pubnames
*(.debug_pubnames)
.debug_info 0x00000000 0x12b
.debug_info 0x00000000 0x87
*(.debug_info)
.debug_info 0x00000000 0x12b Test.o
.debug_info 0x00000000 0x87 Test.o
*(.gnu.linkonce.wi.*)
.debug_abbrev 0x00000000 0xd0
.debug_abbrev 0x00000000 0x53
*(.debug_abbrev)
.debug_abbrev 0x00000000 0xd0 Test.o
.debug_abbrev 0x00000000 0x53 Test.o
.debug_line 0x00000000 0x17d
.debug_line 0x00000000 0xd7
*(.debug_line)
.debug_line 0x00000000 0x17d Test.o
.debug_line 0x00000000 0xd7 Test.o
.debug_frame 0x00000000 0x24
*(.debug_frame)
.debug_frame 0x00000000 0x24 Test.o
.debug_str 0x00000000 0xd8
.debug_str 0x00000000 0x7c
*(.debug_str)
.debug_str 0x00000000 0xd8 Test.o
0x10c (size before relaxing)
.debug_str 0x00000000 0x7c Test.o
0xb0 (size before relaxing)
.debug_loc
*(.debug_loc)

View File

@ -1,8 +1,12 @@
S00C0000546573742E7372656378
S113000012C017C016C015C014C013C012C011C04E
S113001010C00FC00EC00DC00CC00BC00AC009C078
S113002008C007C006C011241FBECFEDCDBF02D04B
S113003010C0E6CF8E9A90E482B3892782BB2FE763
S11300403AE186E0215030408040E1F700C00000F2
S1090050F3CFF894FFCF8A
S11300000C943A000C9444000C9444000C94440066
S11300100C9444000C9444000C9444000C9444004C
S11300200C9444000C9444000C9444000C9444003C
S11300300C9444000C9444000C9444000C9444002C
S11300400C9444000C9444000C9444000C9444001C
S11300500C9444000C9444000C9444000C9444000C
S11300600C9444000C9444000C9444000C944400FC
S11300700C94440011241FBECFEFD4E0DEBFCDBFEB
S11300800E9446000C944E000C94000084B1806ED3
S113009084B990E485B1892785B9FCCFF894FFCF62
S9030000FC

View File

@ -5,7 +5,7 @@
* Author: netz
*/
#define F_CPU 20000000
#define F_CPU 16000000
#include <avr/io.h>
#include <util/delay.h>
@ -14,10 +14,14 @@
int main(void)
{
DDRD |= (1<<PIND6);
DDRB |= (1<<PINB7) | (1<<PINB6) | (1<<PINB5);
while(1)
{
PORTD ^= (1<<PIND6);
_delay_ms(100);
//PORTB ^= (1<<PINB7);
//_delay_us(10000);
//PORTB ^= (1<<PINB7);
PORTB ^= (1<<PINB6);
//_delay_ms(100);
//PORTB ^= (1<<PINB5);
}
}

View File

@ -5,7 +5,7 @@
<ProjectVersion>6.1</ProjectVersion>
<ToolchainName>com.Atmel.AVRGCC8.C</ToolchainName>
<ProjectGuid>{3dbbcd24-e9f6-4fe3-a4c9-761c16036615}</ProjectGuid>
<avrdevice>ATtiny2313</avrdevice>
<avrdevice>ATmega32U2</avrdevice>
<avrdeviceseries>none</avrdeviceseries>
<OutputType>Executable</OutputType>
<Language>C</Language>
@ -34,21 +34,21 @@
<dependencies>
<content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.7.2" />
</dependencies>
</framework-data>
</framework-data>
</AsfFrameworkConfig>
<avrtoolinterface>ISP</avrtoolinterface>
<avrtool>com.atmel.avrdbg.tool.ispmk2</avrtool>
<com_atmel_avrdbg_tool_ispmk2>
<ToolType xmlns="">com.atmel.avrdbg.tool.ispmk2</ToolType>
<ToolName xmlns="">AVRISP mkII</ToolName>
<ToolNumber xmlns="">0000000000000</ToolNumber>
<Channel xmlns="">
<ToolType>com.atmel.avrdbg.tool.ispmk2</ToolType>
<ToolName>AVRISP mkII</ToolName>
<ToolNumber>0000000000000</ToolNumber>
<Channel>
<host>127.0.0.1</host>
<port>62327</port>
<port>63239</port>
<ssl>False</ssl>
</Channel>
<ToolOptions xmlns="">
<InterfaceName>JTAG</InterfaceName>
<ToolOptions>
<InterfaceName>ISP</InterfaceName>
<InterfaceProperties>
<JtagDbgClock>249000</JtagDbgClock>
<JtagProgClock>1000000</JtagProgClock>
@ -86,7 +86,7 @@
<Value>libm</Value>
</ListValues>
</avrgcc.linker.libraries.Libraries>
</AvrGcc>
</AvrGcc>
</ToolchainSettings>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
@ -114,7 +114,7 @@
</ListValues>
</avrgcc.linker.libraries.Libraries>
<avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
</AvrGcc>
</AvrGcc>
</ToolchainSettings>
</PropertyGroup>
<ItemGroup>