avr-gcc unter Windows enthält kein make.
Atmel Studio enthält ein älteres make: "C:\Program Files
(x86)\Atmel\Studio\7.0\shellUtils\make.exe"
Damit klappt es sogar mit dem Bauen - offenbar sind im Makefile alle
Pfade enthalten:
1 | \Release>"C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe"
|
2 | Building file: .././main.c
|
3 | Invoking: AVR/GNU C Compiler : 5.4.0
|
4 | "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe" -x c -funsigned-char -funsigned-bitfields -DNDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.229\include" -O3 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -Wall -mmcu=attiny85 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATtiny_DFP\1.3.229\gcc\dev\attiny85" -c -std=gnu99 -MD -MP -MF "main.d" -MT"main.d" -MT"main.o" -o "main.o" ".././main.c"
|
5 | .././main.c:357:6: warning: return type of 'main' is not 'int' [-Wmain]
|
6 | void main(void) {
|
7 | ^
|
8 | Finished building: .././main.c
|
Wie kann ich das nun mit VSCode per Hotkey ausführen?
Und avrdude - kommt das besser als weiteres "target" ins Makefile oder
separat als Hotkey in VSCode?