-
-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
The version of avrdude which is shipped with PlatformIO lacks support for widespread uploaders like the usbasp by Thomas Fischl. This functionality is available in the regular build of avrdude.
Configuration
Operating system: Windows 10 64bit
PlatformIO Version: Core 5.2.5 Home 3.4.1
Description of problem
When experimenting with the upload settings under PlatformIO to utilize bare microcontrollers without Arduino-boards I noticed that avrdude was giving me error messages about not finding the necessary USB device for my programmer, an usbasp - normally fully supported by avrdude. Changing the executable in the command to a known-working copy of avrdude everything works fine and as expected.
Both avrdude-executables identify themselves as version 3.6
Steps to Reproduce
see here: https://youtu.be/BKO1rYMPF_k?t=480
Actual Results
error message
Expected Results
no error message
If problems with PlatformIO Build System:
The content of platformio.ini
:
[env:ATmega328P]
platform = atmelavr
board = ATmega328p
board_build.f_cpu = 1000000UL
upload_protocol = custom
upload_flags = -pm328p
-Pusb
-B4
-cusbasp
upload_command = "C:\Program Files (x86)\AVRDUDESS\avrdude" $UPLOAD_FLAGS -U flash:w:$SOURCE:i
Source file to reproduce issue:
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRC = (1 << PB5);
while (1)
{
PORTC ^= (1 << PB5);
_delay_ms(500);
}
}
Additional info
codetheweb
Metadata
Metadata
Assignees
Labels
No labels