Skip to content

Conversation

@NicoHood
Copy link
Contributor

Fixes #42

Reset mechanism works like this:
https://github.com/NicoHood/HoodLoader2/wiki/How-to-use-reset

Arduino will also use this new mechanism in the caternia2 bootloader:
https://github.com/facchinm/Arduino_avrusb_firmware/blob/master/Caterina2/Caterina2.c

I'd also like to include this fix, but I am not sure if it is correct. I think a prescaler is not required:
4a09da2#commitcomment-17570839

NicoHood added 6 commits May 22, 2016 11:55
This address is used by gcc as main() return value. Because main() never returns this is unproblematic.
RAMEND - 1 is used in the newer Arduino IDE to make the sketch more safe from memory corruption.
Since the actuall value of the key does not matter, we want to use an Arduino compatible key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CDC BootLoader not Leonardo Compatible

1 participant