Replies: 6 comments 7 replies
-
Are you using the github version? I think I introduced a bug while working on something else. |
Beta Was this translation helpful? Give feedback.
-
Well, I don't think it was actually doing the timeout check loop correctly, period. Full stop. It looks like it would start the first passage through the loop 2 usb latency cycles later I think. The only thing that doesn't add up is that shouldn't be long enough. I know they usually highball the write delays, but not by that much - the datasheet "typical" of 70us for a word write is usually more like 60us. but 2 USB latency cycles is 4ms on a CH340, and it is supposed to take 11ms for a chip erase.....1/7th better than expected seems reasonable. 7/11ths better is implausible. So I still don't fully understand that, I'm not a good python programme - I missed CS201, Constrictor Snakes and Software Development To my profound dismay, searching the entire DxCore directory turned indicates that "the selected serial port does not exist or your board is not connected" isn't in there. (and searches for things like "your board") does not turn up any results either. You know what that means: that garbage is coming from the IDE, and Somehow we're causing the IDE to print that message, and as you can see when it tries to print the port name, it's instead printing Most likely, that variable is supposed to contain the name of the port, not a debug string. |
Beta Was this translation helpful? Give feedback.
-
Well, I dunno about a release. I found ways around this, cheap tricks, to make the AVR toolchain packages (do you think I ship any of the binaries I compiled? No way, they don't work! I use the ones from the last Arduino one, 3 years ago!), and I can only build for x64 linux anyway. Actually, I think the compiler works - it's the linker that's dead as a doornaill.That must be the case, since the build process precompiles a metric shitton of .o files that are used to make the compile time less of a nuisance - this is more than half of the compiler package size - 165 MB, about 6mb per part family that has it's own set of .a files. Oh, and maybe use the Azduino6 toolchain package and don't try to compile for Ex (it doesn't work anyway). Just realized the windows version is hosed :-/ Again. Same story as always, avr/subdirs vs avr/avr/subdirs. I just can't seem to get it right. But in any event, i'd like to see that I made #463 better before I move forward with a release. |
Beta Was this translation helpful? Give feedback.
-
Hello Spence, I did as instructed, but the new prog.py throws a syntax error:
Update: fixing the .py (args.action == "read"), the upload went FINE by using a CH340. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, not even the updated prog.py works with the other USB-Serial cable:
|
Beta Was this translation helpful? Give feedback.
-
@SpenceKonde should I convert this into an issue? |
Beta Was this translation helpful? Give feedback.
-
Hello,
after some time (about 1 year) I digged out my AVR128DB28 to do some testing, updated DxCore and... failed to upload a sketch.
OS: Windows 10 64 bit latest updates
IDE: Arduino 1.8.19
DxCore: 1.5.8 (updated from Boards Manager)
Serial-USB cable: CP2104 (works OK with ATTiny3224 and latest megaTinyCore)
Selected programmer: SerialUPDI (tried both "SLOW 57600" and 230400)
Problem:
I re-checked all wiring with my multimeter and everything seems fine; I had the test board stored away in a box and worked like a charm 1 year ago.
I know it could still have failed, maybe I will have to redo the board, but I cannot understand this part:
Pinging device...
pymcuprog.programmer - INFO - Reading device ID...
pymcuprog.serialupdi.application - INFO - SIB: 'AVR P:2D:1-3M2 (A5.KV00D.0)'
pymcuprog.serialupdi.application - INFO - Device family ID: 'AVR'
pymcuprog.serialupdi.application - INFO - NVM interface: 'P:2'
pymcuprog.serialupdi.application - INFO - Debug interface: 'D:1'
pymcuprog.serialupdi.application - INFO - PDI oscillator: '3M2'
pymcuprog.serialupdi.application - INFO - Extra info: '(A5.KV00D.0)'
Doesn't it mean it was able to communicate with the MCU?
Best,
Fernando
Beta Was this translation helpful? Give feedback.
All reactions