Deviot icon indicating copy to clipboard operation
Deviot copied to clipboard

Using USBasp with Deviot

Open m4rcu5 opened this issue 6 years ago • 8 comments

I'd like to use a USBasp to program my Atmega chip, for which I am using the following configuration in my platformio.ini file:

[env:prod]
platform = atmelavr
board = atmega328pb
board_f_cpu = 8000000L
framework = arduino
upload_protocol = usbasp
upload_flags = -Pusb

This way of uploading does not need a serial port, as USBasp shows up as a device in /dev/bus/usb/.... However the Deviot interface still prompts for a serial port on upload, blocking the process.

m4rcu5 avatar Feb 12 '18 09:02 m4rcu5

Please check the changes in the last release -dev14

It shouldn't ask you to select a port, but you should select the protocol in Deviot Menu > Programmer > Usbasp

If you don't do this last step, upload_protocol and upload_flags will be removed from platformio.ini I will fix this in the next release.

gepd avatar Feb 12 '18 14:02 gepd

👍 Like a charm!

m4rcu5 avatar Feb 12 '18 18:02 m4rcu5

fixed in dev.15, now it will automatically detect the programmer in platformio.ini

gepd avatar Feb 12 '18 22:02 gepd

I still cannot use usbasp to upload my sketch. I select usbasp from the programmer menu but I get the "select port" window when I hit upload. What am I missing?

jon-daemon avatar Nov 11 '18 15:11 jon-daemon

Are you using the dev version?

gepd avatar Nov 14 '18 04:11 gepd

I am. I added

upload_protocol = usbasp
upload_flags = -Pusb

in platformio.ini and now I am able to upload. I thought it would be have done automatically when I chose USBasp as my programmer. Sorry to bother

jon-daemon avatar Nov 14 '18 12:11 jon-daemon

It should be done automatically, I'll check to commit a fix

gepd avatar Nov 16 '18 03:11 gepd

Any news on this? Have you tried to replicate it?

jon-daemon avatar Nov 28 '18 11:11 jon-daemon