|Subject:||RE: [avr-gcc-list] AT90CAN128 bootloader|
|Date:||Sat, 25 Nov 2006 09:58:43 -0800|
IIRC you can cut out the EEPROM support and the boot loader fits into 256 words…
While paring down the size I cut out the C startup (there is no “main()”) & runtime support and moved statics/globals into automatics assuming they would go onto the stack. However that clever compiler kept everything in registers and the resulting code generation was spectacular.
One thing not mentioned in the README is if your application scans for 0x30, 0x20 (no echo) and then “jumps” to the bootloader + one instruction, you can have entry into the loader automatic. I do that with all my projects (that have user interfaces) with a tiny state machine that eats the two characters (printing them if it fails). That way I don’t have to reset or otherwise fool around: Just run AvrDude and tada! new code in 10 seconds or less. “0 “ is an unusual sequence so I never trip across it otherwise.
|[Prev in Thread]||Current Thread||[Next in Thread]|