Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you help me to use? #7

Open
zezao opened this issue Mar 18, 2016 · 11 comments
Open

Can you help me to use? #7

zezao opened this issue Mar 18, 2016 · 11 comments

Comments

@zezao
Copy link

zezao commented Mar 18, 2016

Hi,
I've been programming in Arduino for months, using the Stino plugin. Now I decided to learn AVR Programming, but I don't liked the Atmel Studio IDE (it's a very big program).
So I found your plugin, but I'm too noob to use this :b
Actually I have an ATMEGA8 and an USBasp stick - to upload my code.
Can you help me in how to use your plugin?
I love Sublime Text and I would be very happy if I could program to AVR with Sublime Text.

Thank You

PS: Sorry for my bad english.

@kblomqvist
Copy link
Owner

Which operating system you are using?
Have you AVR toolchain in place?

@zezao
Copy link
Author

zezao commented Mar 21, 2016

Thanks for the reply.

I'm using Windows 8.1.
I downloaded AVR toolchain and put in C Disk, as you can see here
yjpykec 1
In the Package Control page you said that I have to set it in PATH, how can I do that?

@zezao zezao changed the title Can you help to use? Can you help me to use? Mar 21, 2016
@kblomqvist
Copy link
Owner

Press Win + Pause/Break. Select Advanced system settings and Environment Variables. There you can set PATH variable. Append it with the installation path of AVR Toolchain. You need to give the path to the bin folder.

Semicolon ; is used as a separator mark so remember to add that before adding new path into the list.

@zezao
Copy link
Author

zezao commented Mar 22, 2016

I set the PATH, but now I'm getting this error:
sem titulo
I use winAVR in Atmel Studio normally, you know what I can do?

@kblomqvist
Copy link
Owner

What does the error says in English? At least now the plugin tries to compile. You can see the first call to avr-gcc below.

@zezao
Copy link
Author

zezao commented Mar 22, 2016

The error says "The application was unable to start correctly (0xc0000142).".

@zezao
Copy link
Author

zezao commented Mar 22, 2016

Just to report: I solved the error following these step: http://www.avrfreaks.net/forum/windows-81-compilation-error

I had to change AVRDUDE_FLAGS to "-c usbasp", to use my USBasp stick. Is there a way to change this in my template? (set USBasp to always make the upload).

@kblomqvist
Copy link
Owner

You can edit your .sublime-project file to add -c usbasp there. And if you like to have a template for that create a new template (zip-file) into templates folder. The zip-file may contain whatever files you like to have in your custom template along with the .sublime-project file.

@zezao
Copy link
Author

zezao commented Mar 22, 2016

I managed to change -c usbasp in SublimeAVR.py file. Put .sublime-project in my custom template doesn't work, but now I finally got it. Your plugin is working like a charm.
Thank you for spend time trying to help me! :)

Edit
Just one more thing:
Is there a way to change the initial project location (just to add my project's folder, so I dont need to write it every time)?
From this
sem titulo
To something like that
sem titulo1

@kblomqvist
Copy link
Owner

You shouldn't need to edit SublimeAVR.py but just edit the generated project Makefile file. I can add a feature to set default project folder in settings.

@zezao
Copy link
Author

zezao commented Mar 23, 2016

Is there a possibility to make a feature to set Project Name in TARGET too? I make a project in C:\Users\José\Projects\Blink and the compiler create Blink.hex, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants