pyUPDI #432
Replies: 1 comment
-
Are you using 2.3.2? That's when we switched to recommending it (and it's not quite pyupdi, it's a bridge between the Arduino IDE and Microchip's (now open source MIT license) pymcuprog tool, which itself received extensive modification at my hand over the past few weeks to optimize performance. As of 2.3.2 a few things have changed:
Since 2.2.0 we always write the fuses when programming over UPDI (all programming methods except through a bootloader) - we write what I classify as "safe" fuses - those that can never interfere with reprogramming, if set improperly, AND which are normally set by the tools menu options I present to the user. Thus: Setting OSCCFG on uploads was a very frequently requested feature.... confusion over this behavior was... close to half of the communication I received in relation to megatinycore. From people who changed the menu option for clock speed, did not rebootload even though I had a reminder that you had to burn bootloader for that, couldn't figure out why it wasn't working,, and were confused for long enough that they emailed the developer before they figured it out). I thought about it and realized that the reasons that classic AVRs only set fuses when bootloader is burned not on every upload is because every one of the fuses on classic AVR will brick your board if set wrong - setting lfuse to clock source that's not there will require piping external clock to it to revive, 128k oscillator requires slowing down the ISP clock to undo, etc, the hfuse has the bits to disable ISP programming or reset, and the extended fuse typically controls whether the bootloader can write to the flash, and can impact a variety of other things, that's where they threw any sort of fusey setting that they didn't have anywhere else for). The developer of a hardware package like my cores has no control over the colors the IDE uses for text. All output from the upload tool, as I understand it,is printed in that red-orange. If there is any way to specifically change on that, I do not know what it is. So... I hope that clears things up on this front let me know if tyou have any further questions. |
Beta Was this translation helpful? Give feedback.
-
I built several serial adapters "pyUPDI" with CH340N and built them into G1901G boxes. They look like USB drives and are so cute, even though I made them on a single-layer PCB at home. :-) They work without problems, I tried them on attiny414. However, I was surprised at how much information is written out during programming. Because they are red, they make me uneasy. Couldn't they be written in white or gray? And it even changes the fuses when programming! Why? JTAG2UPDI (I have it built in the same box) will do the same task quietly and possibly faster. At least for small projects. What makes pyUPDI better?
Beta Was this translation helpful? Give feedback.
All reactions