Firmware.sublime-project 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "build_systems":
  3. [
  4. {
  5. "name": "compile",
  6. "working_dir": "$project_path",
  7. "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  8. // Arduino build process:
  9. // https://www.arduino.cc/en/Hacking/BuildProcess
  10. "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"
  11. },
  12. {
  13. "name": "compile & upload",
  14. "working_dir": "$project_path",
  15. "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  16. //FIXME
  17. // Better to use avrdude directly?
  18. // http://www.nongnu.org/avrdude/user-manual/avrdude_4.html
  19. // avrdude -F -v -pm168 -cstk500v1 -P\\.\COM4 -b19200 -D -Uflash:w:"file.hex":i
  20. // 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\"
  21. // https://typeunsafe.wordpress.com/2011/07/22/programming-arduino-with-avrdude/
  22. "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"
  23. },
  24. {
  25. "name": "map-data",
  26. "working_dir": "$project_path",
  27. // https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
  28. // Maybe it is better to generate map files by the linker?
  29. // avr-gcc -g -mmcu=atmega8 -Wl,-Map,demo.map -o demo.elf demo.o
  30. "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"
  31. },
  32. {
  33. "name": "map-bss",
  34. "working_dir": "$project_path",
  35. // https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
  36. "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"
  37. },
  38. {
  39. "name": "map-all",
  40. "working_dir": "$project_path",
  41. // https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
  42. "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"
  43. },
  44. {
  45. "name": "disassemble",
  46. "working_dir": "$project_path",
  47. // https://sourceware.org/binutils/docs-2.21/binutils/objdump.html
  48. "shell_cmd": "\"c:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr\\bin\\avr-objdump.exe\" -h -w -S ..\\output\\Firmware.ino.elf > ..\\output\\Firmware.asm"
  49. }
  50. ],
  51. "folders":
  52. [
  53. {
  54. "path": "."
  55. // "folder_exclude_patterns": [".svn", "._d", ".metadata", ".settings"],
  56. // "file_exclude_patterns": ["XS.c"]
  57. }
  58. ]
  59. }