Deviot
Deviot copied to clipboard
Using USBasp with Deviot
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.
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.
👍 Like a charm!
fixed in dev.15
, now it will automatically detect the programmer in platformio.ini
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?
Are you using the dev
version?
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
It should be done automatically, I'll check to commit a fix
Any news on this? Have you tried to replicate it?