Show Posts
Pages: [1]
1  Development / Other Software Development / Re: Sublime Text and Stino: Best IDE you can have. on: April 25, 2013, 09:02:43 pm
I don't think it's difficult to add support of assembly. But I need some information:
1. the extension name of assembly files? is ".S"?
2. compilation command?

In Arduino platform.txt, there is one line:
compiler.S.flags=-c -g -assembler-with-cpp
but there is no compilation command.
2  Development / Other Software Development / Re: TextMate for Arduino on: April 17, 2013, 12:51:59 am
Or you can try Sublime Text (http://www.sublimetext.com/2) and Stino plugin (https://github.com/Robot-Will/Stino).
3  Development / Other Software Development / Re: Sublime Text and Stino: Best IDE you can have. on: March 31, 2013, 07:25:03 pm
This plugin is still under development, so there are still problems remaining.
4  Development / Other Software Development / Re: Commandline build on Windows on: December 31, 2012, 07:11:26 am
Sorry for my fault. It should be avr. I have changed it.
5  Development / Other Software Development / Re: Commandline build on Windows on: December 30, 2012, 11:51:22 am
Hi, I think you can write your own makefile to run build, but first of all you must set PATH to run commands:

Two paths are needed to set, Arduino-path is the path where you put your Arduino program:
posix command path: Arduino-path\hardware\tools\avr\utils\bin
avr-gcc command path: Arduino-path\hardware\tools\avr\bin
Use this command to set PATH
Code:
Set Path=Arduino-path\hardware\tools\arv\utils\bin:Arduino-path\hardware\tools\arv\bin

And next, write a makefile and just type 'make', build will run automatically.
I think a simple makefile is the best, and it just a list of commands needed.
The commands needed are listed in platform.txt(Arduino version >= 1.5), like this:
Code:
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD

## Compile c files
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} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
All the parameters are listed in boards.txt and programmers.txt corresponding to a board and a programmer.

The attachment is one of my makefile. But this makefile is just for a certain sketch, not a general purpose makefile.
I wrote a program to generate makefiles for sketches. It can read all parameters needed and write the command list to a makefile.
As my program is part of a plugin for Sublime Text 2, it is not a command line program.
I think you can write a program to do the same thing using your favorite program language.


6  Development / Other Software Development / Re: Sublime Text and Stino: Best IDE you can have. on: December 30, 2012, 10:49:13 am
Hi, Tomasi, you are nice.
Pages: [1]