Hi!
Wenn ich versuche, folgenden Code zu kompilieren, erzeugt mir
Code::Blocks keine .hex im Bin ordner des Projekts. An was könnte das
liegen?
1 | #include "m16def.inc"
|
2 | #include <avr/io.h> // (1)
|
3 |
|
4 | int main (void) { // (2)
|
5 |
|
6 | DDRB = 0xff; // (3)
|
7 | PORTB = 0x03; // (4)
|
8 |
|
9 | while(1) { // (5a)
|
10 | /* "leere" Schleife*/ // (5b)
|
11 | } // (5c)
|
12 |
|
13 | /* wird nie erreicht */
|
14 | return 0; // (6)
|
15 | }
|
Build Log aus C::B
Compiling: main.c
cc1.exe: error: missing argument to "-mmcu="
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
Stimmt die Definierung des µCs für einen Mega16?
Grüße, Peter