Optiboot / optiboot

Small and Fast Bootloader for Arduino and other Atmel AVR chips
Other
1.09k stars 399 forks source link

Add support for ATmega8535 #162

Closed MCUdude closed 6 years ago

MCUdude commented 8 years ago

Could you please add support for the ATmega8535? I got a few of those lying around, and Iid love to be able to have a bootloader for them. Should be an easy port. It's almost identical to the ATmega16, except for JTAG and just 8kB of flash

WestfW commented 6 years ago

https://github.com/Optiboot/optiboot/commit/b263cada0830eb4ec7a91fbe0bb5a7b85f5b5166 (not tested)

MCUdude commented 6 years ago

Wow, this is great! It's like I don't need my own fork anymore 😉

MCUdude commented 6 years ago

FYI I've tested optiboot_flash on the following devices with success:

BTW note that ATmega162 is different when it comes to UART initialization than any other AVR I've used. I needed to add a separate UART_SRC line just for this device.

WestfW commented 6 years ago

Excellent. I see I missed that m162 line...

WestfW commented 5 years ago

Do you have any additional test programs for the application-flash-write feature (beyond the SerialReadWrite sketch)?

MCUdude commented 5 years ago

No, I'm sorry. I made this sketch a few years ago just as a proof of concept. It would be awesome if a better sketch was made, or maybe a proper library. My dream is a library like the SD library with a simple file system. However I'm not capable of making something like this 😉

MCUdude commented 5 years ago

FYI I've also been working on my own version of Optiboot in this fork. The difference between this and the version you've added to release 8.0 are these: