This is the driver I installed on my atmel ICE. now in the device manager it shows up as a libusb-win32 device. There was another driver I could’ve installed with a similar name, something like libusbk, I dont know if this one would have been better.
It doesn’t seem to change a lot of things when I press upload on platformIO. With this .ini file:
[env:ATmega328P]
platform = atmelavr
board = ATmega328P
framework = arduino
upload_protocol = atmelice_isp
upload_flag = -e
I get:
DATA: [ ] 0.4% (used 9 bytes from 2048 bytes)
PROGRAM: [ ] 1.4% (used 444 bytes from 32256 bytes)
Configuring upload protocol...
AVAILABLE: atmelice_isp
CURRENT: upload_protocol = atmelice_isp
Looking for upload port...
Error: Please specify `upload_port` for environment or use global `--upload-port` option.
For some development platforms it can be a USB flash drive (i.e. /media/<user>/<device name>)
*** [upload] Explicit exit, status 1
So it complains about a missing upload_port argument`. If I add:
upload_port = usb
I get:
DATA: [ ] 0.4% (used 9 bytes from 2048 bytes)
PROGRAM: [ ] 1.4% (used 444 bytes from 32256 bytes)
Configuring upload protocol...
AVAILABLE: atmelice_isp
CURRENT: upload_protocol = atmelice_isp
Looking for upload port...
Use manually specified: usb
Uploading .pio\build\ATmega328P\firmware.hex
avrdude: usbdev_send(): wrote -22 out of 7 bytes, err =
avrdude: jtag3_send(): failed to send command to serial port
avrdude: failed to sync with the JTAGICE3 in ISP mode
avrdude done. Thank you.
Did I install the right driver? should I create a custom board? (I am kinda worried it looks a little complicated to do). Is it just a matter of typing the right .ini file? thanks again guys…