Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

upload using programmer #201

Open
lesion opened this issue Sep 29, 2014 · 2 comments
Open

upload using programmer #201

lesion opened this issue Sep 29, 2014 · 2 comments

Comments

@lesion
Copy link

lesion commented Sep 29, 2014

Is it possible to upload sketches using an external programmer like usbasp?
I've tried with :

ino upload -p usbasp

without any success:

usbasp doesn't exist. Is Arduino connected?

Using it with avrdude directly it works:

avrdude -p usbasp -c m328p
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: safemode: Fuses OK (H:05, E:DE, L:FF)
avrdude done.

It works also using "File > Upload with programmer" in Arduino IDE.
Any advice?
Thank you.

@nathanejohnson
Copy link

It looks as though it inspects the boards.txt to decide what protocol it uses. You could copy the section for the m328p, write it as a new section with a different name, and set the protocol, then specify that new device name to ino upload and it should work. However, if your programmer requires an erase before loading, then you might want to look at pull request #207

@vlachoudis
Copy link

Any chance that this will be implemented

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

No branches or pull requests

3 participants