Warum lässt sich der code nicht builden?? Ich nutze das Atmel Studio 7
1 | #include <avr/io.h> |
2 | #define F_CPU 32000000UL |
3 | #include <util/delay.h> |
4 | #include <avr/interrupt.h> |
5 | |
6 | int main(void) |
7 | { |
8 | PORTC.DIRSET = 0b00000001 ; |
9 | PORTA.DIR = 0x00; |
10 | PORTA.PIN1CTRL= PORT_OPC_WIREDANDPULL_gc; |
11 | |
12 | sei(); |
13 | |
14 | PMIC.CTRL |= PMIC_HILVLEN_bm; |
15 | PORTA.INTCTRL = 0x03; |
16 | PORTA.INT0MASK = 0x01; |
17 | PORTA.PIN1CTRL = PORT_ISC_FALLING_gc; |
18 | |
19 | while(1){}; |
20 | } |
21 | |
22 | |
23 | ISR(PORTA_INT0_vect) |
24 | { |
25 | PORTD.OUTSET = 0b00010000 ; |
26 | } |
Ich erhalte den Fehler: recipe for target 'main.o' failed Kann der Code grundsätzlich so überhaupt funktionieren? Ich möchte auf meinem Atxmega32E5 über einen externen Interruptveine LED einschalten. Bin Anfänger in Sachen xmega.