FDxICSP 1.72 - Solving advanced upload error with -x devcode hack SCK AVR MCU programmer AVR910 fast

Channel:
Subscribers:
539
Published on ● Video Link: https://www.youtube.com/watch?v=d6-08jcR6Ik



Duration: 2:19
4 views
0


It's very complicated, more complicated than one can imagine if faster upload speed is the goal. What is the cause of this error? It's not from a bug in the code, but it's the fact that SCK is not stable at that high speed vs the target MCU, so decreasing it solves the problem, but it's a dilemma between fast and safe. Assuming both MCUs are operating at exact 8MHz, the programmer can output a 4MHz max SCK, but with SPI slave being in 8MHz, it requires to be clocked in with lower than 8/4=2MHz to be stable. Using 2MHz is ideal, but it's not stable, thus the errors, so to be 100% sure 1MHz should be used, but it's twice slower than 2MHz, so not great when fast upload speed is the goal.Here I am hacking the extended option in avrdude to let the user select between Fast and Safe SCK mode; Fast will work with MCU at slightly slower than 8MHz or for example 7.999Mhz at with 2MHz sck.




Other Videos By Flyandance


2024-02-21FDxICSP 1.81 - W:28.3kB/s Atmega128 || W:21kB/s Atmega328 || W:11.5kB/s Atmega8 - AVR910 new fastest
2024-02-20FDxICSP 1.80 - 23kB/s - AUTO SCK from 4MHz to 488Hz - hardware + software SPI - Programmer AVR910
2024-02-19FDxICSP 1.80 - AUTO SCK from 4MHz to 488Hz - Advanced hardware + software SPI - AVR910 - avr prog
2024-02-18IDE-less 2.1 + FDxboot 1.61 + True Auto-upload + 1MHZ + 5000bps Test - AVR109
2024-02-17IDE-less 2.0 - Flyandance Advanced 8-bit AVR compile and Upload Batch MCU Universal 2.0 - atmel
2024-02-16FDxAISP_0.1 - Hacked fake 5kByte/s speed USBasp - 4.3kB/s Write and 5.8kB/s Read
2024-02-15FDxICSP 1.74 - Final Check + LED code - SCK overriding using xcode AVR910 Programmer AVR910
2024-02-14FDxboot_1.61 - 3rd and 4th way to do auto upload - rts dtr Serial AVR109 bootloader
2024-02-13FDxICSP 1.74 - 21 uploads test -- SCK overriding VS BAUD VS Upload -- Perfect Programmer AVR910
2024-02-12FDxICSP 1.73 - 17.3kBs Atmega328p - Optimization, interrupt timer and Advanced bug fixed AVR AVR910
2024-02-11FDxICSP 1.72 - Solving advanced upload error with -x devcode hack SCK AVR MCU programmer AVR910 fast
2024-02-10FDxICSP 1.71 - 7 lines of code - Added EEPROM support AVR910
2024-02-09FDxICSP 1.70 - SCK(4Mhz-62kHz) VS BAUD rate (1Mbps/500kpbs) VS upload speed (22.4kB/s-1.7kB/s)
2024-02-08FDxICSP 1.70 - 9.5kB/s Atmega8 - Auto SCK selector + SCK vs Upload speed New MCU programmer AVR910
2024-02-07FDxICSP 1.70 - 15.1kB/s Atmega328p Upload Test - New Universal AVR MCU programmer - AVR910
2024-02-06FDxICSP 1.70 - 22.2kB/s - New Universal AVR MCU programmer - AVR910 new benchmark record fast Atmel
2024-02-05FDxICSP 1.61s - Upload Test - No error - Auto SCK - New Universal AVR MCU programmer - AVR910
2024-02-04FDxICSP 1.61 New programmer Development - Universal Flash busy polling
2024-02-03Upload Speed Test: USBasp Original VS Juno USBasp VS FDxICSP 1.1
2024-02-02Juno FDxboot 1.61 - DEV m8 Bootloader stage LED display color AVR Auto upload
2024-02-01Juno FDxboot 1.61x - ultimate Test - Speed auto-Upload Smart page Erase - Atmega128A AVR Development