Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CDC Bootloader Arduino compatible #86

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

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

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