Closed MCUdude closed 5 years ago
@ivankravets maybe this issue should be moved to the platformio-core repo instead? Not sure if this is AVR related or not.
Do use Program target?
The output seen in my first post is when using "Upload using Programmer". When trying to upload by just clicking "Upload" I get this error:
Checking size .pio\build\MightyCore\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [ ] 3.2% (used 522 bytes from 16384 bytes)
PROGRAM: [ ] 3.4% (used 4392 bytes from 130048 bytes)
Configuring upload protocol...
AVAILABLE: usbasp
CURRENT: upload_protocol = usbasp
Looking for upload port...
Uploading .pio\build\MightyCore\firmware.hex
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
*** [upload] Error 1
============================================================================================================= [FAILED] Took 16.41 seconds =============================================================================================================
The terminal process terminated with exit code: 1
So it seems like "Upload" accept a missing serial port, while "Upload using programmer" don't.
Don't worry about the avrdude error above. I didn't have any hardware connected to my USBasp programmer, but that's not the issue 😉
Wow, this is a bug! :( I've just fixed it. Please inform me when new releases of your cores will be available. We will do joined release.
Awesome! PlatformIO is getting better every day 👍 Thank you for being so available and spending time helping out users like me!
Please inform me when new releases of your cores will be available.
AFAIK only MightyCore is affected by the SPI1 related bug we've discussed earlier. I'll keep you informed! It won't be long, promise 🙂
How do I pull this change in, it is not yet release right?
I think I found it https://docs.platformio.org/en/latest/platforms/atmelavr.html#upstream
I still have the same problem.
it seems Platformio doesn't accept port over COM10, I was using COM11 and after I changed to COM5 it works
That´s right. I changed COM13 to COM2 and it works!
it seems Platformio doesn't accept port over COM10, I was using COM11 and after I changed to COM5 it works
Damn, this is so stupid... The COM port automatically kept increasing as I changed the port, and when it became COM11, PlatformIO did not recognise it. I opened Kitty and connected to COM11 and I could see the serial output so the port was working. After reading your comment, I changed the COM to a lower number like 5 (I had to remove all the "hidden" devices in the Device Manager), unplugged/re-plugged the cable, and now PlatformIO recognised the port.
@HubKing , @demostenes63 ,
Could you revert back port to COM13 and try to run pio device list?
See how to open PlatformIO Core CLI.
My Env. settings are as follows
[env:168pa16m] platform = atmelavr board = pro8MHzatmega328 framework = arduino lib_deps = locoduino/MemoryUsage@^2.21.1 upload_protocol = usbasp
I am getting the following error after upload via USBASP programmer to an Arudino Pro Mini
avrdude: verifying ... avrdude: verification error, first mismatch at byte 0x20a9 0x21 != 0xf1 avrdude: verification error; content mismatch
avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF)
avrdude done. Thank you.
*** [upload] Error 1
Hi!
I go this strange error and AFAIK I've never seen this before. I'm trying to upload code to an ATmega324PB (MightyCore) and have the following platformio.ini file
For uploading, I choose "Upload using Programmer" under env:MightyCore. After a short while I get this error:
Why do I have to specify
upload_port
when I'm using a USBasp programmer?