SPM 3.0 writes to self - Advanced AVR 3.0 Core Bootloader

Channel:
Subscribers:
580
Published on ● Video Link: https://www.youtube.com/watch?v=M_HC3_TN1Bo



Duration: 2:20
4 views
0


Boot macros from AVC-libc are pretty bad. Here is how it is done mainly using c and simple inline asm code. The MCU needs to access to r1:r0 and the z-register, and that is pretty much all to it, but r1 needs to be cleared once it's used since this r1 is supposed to be the so-called zero-register in AVR-c. Code size has reduced to 80 bytes while being extremely easy to read, portable and elegant. The compiled assembly code is beautiful and near perfect, and exactly the reason why writing everything in inline asm is beyond dumb.




Other Videos By Flyandance


2023-03-31Mr.F's Straight Razor Hair Hanging Test HHT - FD Honing Service
2023-03-26New FDxBOOT 1.0.RC - 476 bytes - 4770 B/s @1Mpbs - Bootloader self-program - AVR109/AVR911/butterfly
2023-03-25Spoofing AVR109/AVR911/butterfly - Fixing its retarded protocol and Bootloader AVRdude AVROSP
2023-03-24Bootloader self-program - Juno AVR109 Beta/draft Part 2 - Advanced AVR 3.0 Core
2023-03-23AVR109 Deeper look
2023-03-22Cutting board is over-rated: Cut half onion by hand w/o one
2023-03-21Bare Minimal 2 | .init0 | naked | .ctors | signal | -nostartfiles - Advanced AVR 3.0 Core
2023-03-20Bootloader self-program - Juno AVR109 Rewrite Part 1 - Advanced AVR 3.0 Core
2023-03-19Bootloader self-program - AVR109 speed test avrdude - Advanced AVR 3.0 Core - 1Mbps with 8MHz CPU
2023-03-18Bootloader self-program - AVR109 w/ AVROSP and avrdude - Advanced AVR 3.0 Core
2023-03-17SPM 3.0 writes to self - Advanced AVR 3.0 Core Bootloader
2023-03-16SPM 2.0 writes to self - Advanced AVR 3.0 Core Bootloader
2023-03-14You jump, ijmp - Inline asm Indirect Jump - Advanced AVR 3.0 Core Bootloader
2023-03-05yt-dlp - A ultimate guide (The result of 2 weeks of hard work)
2023-03-03True bare Minimal code - Advanced AVR 3.0 Core Bootloader Pro Part 4 Size does matters getting naked
2023-02-28Bootloader-less Pro - Advanced AVR 3.0 Core - Part 3 - SPM - App Writes to App section - programmer
2023-02-27Bootloader-less Pro - Advanced AVR 3.0 Core - Part 2 - SPM erase self destruction code
2023-02-26Inline ASM - Advanced AVR 3.0 Core - LMP read from flash Load Program Memory
2023-02-25Inline ASM - Advanced AVR 3.0 Core - Finalizing
2023-02-22Inline ASM - Advanced AVR 3.0 Core
2023-02-19Bootloader-less Pro - Advanced AVR 3.0 Core - Part 1 - GCC Sections functions attribute