Hey Leute,
Bin gerade dabei mich mit dem Atmel Studio 7 zu befassen.
Zuvor habe ich mit der Arduino IDE gearbeitet.
Vorweg mit dem Arduino Mega2560 hat das hochladen des Sketches wunderbar
geklappt.
Aber beim hochladen auf dem Arduino UNO bekomme ich selbst bei den
kleinsten Sketch(Blinken einer LED) Probleme.
Hier der Sketch:
1 | /*
|
2 | * GccApplication9.cpp
|
3 | *
|
4 | * Created: 09.03.2017 12:38:51
|
5 | * Author : Dirk
|
6 | */
|
7 |
|
8 | #define F_CPU 16000000L
|
9 | #include <avr/io.h>
|
10 | #include <util/delay.h>
|
11 |
|
12 | int main(void)
|
13 | {
|
14 | DDRB |= (1 << PB5);
|
15 |
|
16 | while(1)
|
17 | {
|
18 | PORTB |= (1 << PB5);
|
19 | _delay_ms(500);
|
20 | PORTB &= ~(1 << PB5);
|
21 | _delay_ms(500);
|
22 | }
|
23 | }
|
Und hier die Fehlermeldung:
1 | avrdude.exe: AVR device initialized and ready to accept instructions
|
2 |
|
3 | Reading | ################################################## | 100% 0.00s
|
4 |
|
5 | avrdude.exe: Device signature = 0x1e950f (probably m328p)
|
6 | avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
|
7 | To disable this feature, specify the -D option.
|
8 | avrdude.exe: erasing chip
|
9 | avrdude.exe: reading input file "c:\users\dirk\Documents\Atmel Studio\7.0\GccApplication9\GccApplication9\Debug\main.hex"
|
10 | avrdude.exe: can't open input file c:\users\dirk\Documents\Atmel Studio\7.0\GccApplication9\GccApplication9\Debug\main.hex: No such file or directory
|
11 | avrdude.exe: read from file 'c:\users\dirk\Documents\Atmel Studio\7.0\GccApplication9\GccApplication9\Debug\main.hex' failed
|
12 |
|
13 | avrdude.exe: safemode: Fuses OK (E:00, H:00, L:00)
|
14 |
|
15 | avrdude.exe done. Thank you.
|
Den Sketch an sich ist der selbe wie beim Atmega2560.
Für euch ist das bestimmt eine Leichtigkeit.
Ich finde den Fehler aber nicht.
Vielen Dank