@@ -26,22 +26,56 @@ compiler.upload.flags=
26
26
# --------------------
27
27
28
28
## Compile c files
29
- recipe.c.o.pattern={compiler.path}{compiler.c.cmd} {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide.version} {includes} {source_file} -o {object_file}
29
+ recipe.c.o.pattern={compiler.path}{compiler.c.cmd} {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime. ide.version} {includes} {source_file} -o {object_file}
30
30
31
31
## Compile c++ files
32
- recipe.cpp.o.pattern={compiler.path}{compiler.cpp.cmd} {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide.version} {includes} {source_file} -o {object_file}
32
+ recipe.cpp.o.pattern={compiler.path}{compiler.cpp.cmd} {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={runtime. ide.version} {includes} {source_file} -o {object_file}
33
33
34
34
## Create archives
35
35
recipe.ar.pattern={compiler.path}{compiler.ar.cmd} {compiler.ar.flags} {build.path}/{archive_file} {object_file}
36
36
37
37
## Combine gc-sections, archives, and objects
38
- recipe.c.combine.pattern={compiler.path}{compiler.c.elf.cmd} {compiler.c.elf.flags} -mmcu={build.mcu} -o {build.path}/{project_name}.elf {object_files} {build.path}/{archive_file} -L{build.path} -lm
38
+ recipe.c.combine.pattern={compiler.path}{compiler.c.elf.cmd} {compiler.c.elf.flags} -mmcu={build.mcu} -o {build.path}/{build. project_name}.elf {object_files} {build.path}/{archive_file} -L{build.path} -lm
39
39
40
40
## Create eeprom
41
- recipe.objcopy.eep.pattern={compiler.path}{compiler.objcopy.cmd} {compiler.objcopy.eep.flags} {build.path}/{project_name}.elf {build.path}/{project_name}.eep
41
+ recipe.objcopy.eep.pattern={compiler.path}{compiler.objcopy.cmd} {compiler.objcopy.eep.flags} {build.path}/{build. project_name}.elf {build.path}/{build. project_name}.eep
42
42
43
43
## Create hex
44
- recipe.objcopy.hex.pattern={compiler.path}{compiler.elf2hex.cmd} {compiler.elf2hex.flags} {build.path}/{project_name}.elf {build.path}/{project_name}.hex
44
+ recipe.objcopy.hex.pattern={compiler.path}{compiler.elf2hex.cmd} {compiler.elf2hex.flags} {build.path}/{build. project_name}.elf {build.path}/{build. project_name}.hex
45
45
46
46
47
+ # AVR Uploader/Programmers tools
48
+ # -------------------
49
+
50
+ tools.avrdude.upload.cmd=avrdude
51
+ tools.avrdude.upload.path={runtime.ide.path}/hardware/tools
52
+ tools.avrdude.upload.config.path={upload.path}/avrdude.conf
53
+ tools.avrdude.upload.params.verbose=-v -v -v -v
54
+ tools.avrdude.upload.params.quiet=-q -q
55
+ tools.avrdude.upload.pattern={upload.path}/{upload.cmd} -C{upload.config.path} {upload.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D -Uflash:w:{build.path}/{build.project_name}.hex:i
56
+
57
+ # /home/megabug/git/ARM-merged/build/linux/work/hardware/tools/avrdude
58
+ # -C/home/megabug/git/ARM-merged/build/linux/work/hardware/tools/avrdude.conf
59
+ # -q -q
60
+ # -patmega328p
61
+ # -carduino
62
+ # -P/dev/ttyACM0
63
+ # -b115200
64
+ # -D
65
+ # -Uflash:w:/tmp/build366783256629686367.tmp/Blink.cpp.hex:i
66
+
67
+ tools.avrdude.program.cmd=avrdude
68
+ tools.avrdude.program.path={runtime.ide.path}/hardware/tools
69
+ tools.avrdude.program.config.path={program.path}/avrdude.conf
70
+ tools.avrdude.program.params.verbose=-v -v -v -v
71
+ tools.avrdude.program.params.quiet=-q -q
72
+ tools.avrdude.program.pattern={program.path}/{program.cmd} -C{program.config.path} {program.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -Uflash:w:{build.path}/{build.project_name}.hex:i
73
+
74
+ # /home/megabug/git/ARM-merged/build/linux/work/hardware/tools/avrdude
75
+ # -C/home/megabug/git/ARM-merged/build/linux/work/hardware/tools/avrdude.conf
76
+ # -q -q
77
+ # -patmega328p
78
+ # -cusbasp
79
+ # -Pusb
80
+ # -Uflash:w:/tmp/build8190214930979711138.tmp/Blink.cpp.hex:i
47
81
0 commit comments