MCUdude / MegaCoreX

An Arduino hardware package for ATmega4809, ATmega4808, ATmega3209, ATmega3208, ATmega1609, ATmega1608, ATmega809 and ATmega808
GNU Lesser General Public License v2.1
243 stars 47 forks source link

Programming does not work with MegaCoreX #163

Closed sfr-droid closed 1 year ago

sfr-droid commented 1 year ago

After compiling finished, at the point where it would start programming an error accour:

exit status 0xc000007b

I can not program one single board in the whole library because each time that error accours

per1234 commented 1 year ago

Maybe it is the same as https://github.com/MCUdude/MegaCoreX/issues/160

sfr-droid commented 1 year ago

I'm pretty sure that its not more than some missing files and yes as you said in post #160, adding the libusb0.dll to the bin folder of the MegaCoreX Library will cure the error 0xc0000135 but not the error 0xc000007b. I also got the error 0xc0000135 before.

per1234 commented 1 year ago

OK, I understand. I noticed the different exit status but was unsure whether it was significant. We can continue the investigation over on the forum:

https://forum.arduino.cc/t/megacorex-exit-status-0xc000007b/1055904

sfr-droid commented 1 year ago

Finally I found a solution that works for the issues 0xc0000135 and 0xc000007b. The reason for this error is that avrdude is obviously missing some dll files.

So all I did was download libusbk from: https://sourceforge.net/projects/libusbk/files/libusbK-release/3.0.7.0/

And the errors where gone. Hope this helps others that suffer also from this nasty problem

Cheers