-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFirmware.sublime-project
59 lines (59 loc) · 2.67 KB
/
Firmware.sublime-project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"build_systems":
[
{
"name": "compile",
"working_dir": "$project_path",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
// Arduino build process:
// https://www.arduino.cc/en/Hacking/BuildProcess
"shell_cmd": "\"c:\\Program Files (x86)\\Arduino\\arduino_debug.exe\" --pref build.path=..\\output --verify --board marlinAddon:avr:rambo -v --preserve-temp-files Firmware.ino"
},
{
"name": "compile & upload",
"working_dir": "$project_path",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
//FIXME
// Better to use avrdude directly?
// http://www.nongnu.org/avrdude/user-manual/avrdude_4.html
// avrdude -F -v -pm168 -cstk500v1 -P\\.\COM4 -b19200 -D -Uflash:w:"file.hex":i
// may need add path to avrdude config file: -C"c:\utils\arduino-0016\hardware\tools\avr\etc\avrdude.conf" if Arduino IDE installed in "c:\utils\arduino-0016\"
// https://typeunsafe.wordpress.com/2011/07/22/programming-arduino-with-avrdude/
"shell_cmd": "\"c:\\Program Files (x86)\\Arduino\\arduino_debug.exe\" --pref build.path=..\\output --upload --port COM9 --board marlinAddon:avr:rambo -v --preserve-temp-files Firmware.ino"
},
{
"name": "map-data",
"working_dir": "$project_path",
// https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
// Maybe it is better to generate map files by the linker?
// avr-gcc -g -mmcu=atmega8 -Wl,-Map,demo.map -o demo.elf demo.o
"shell_cmd": "\"c:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-objdump.exe\" -x -S -C -j .data ..\\output\\Firmware.ino.elf > ..\\output\\Firmware-data.map"
},
{
"name": "map-bss",
"working_dir": "$project_path",
// https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
"shell_cmd": "\"c:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-objdump.exe\" -x -S -C -j .bss ..\\output\\Firmware.ino.elf > ..\\output\\Firmware-bss.map"
},
{
"name": "map-all",
"working_dir": "$project_path",
// https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
"shell_cmd": "\"c:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-objdump.exe\" -x -S -C ..\\output\\Firmware.ino.elf > ..\\output\\Firmware-all.map"
},
{
"name": "disassemble",
"working_dir": "$project_path",
// https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
"shell_cmd": "\"c:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-objdump.exe\" -h -w -S ..\\output\\Firmware.ino.elf > ..\\output\\Firmware.asm"
}
],
"folders":
[
{
"path": "."
// "folder_exclude_patterns": [".svn", "._d", ".metadata", ".settings"],
// "file_exclude_patterns": ["XS.c"]
}
]
}