Skip to content

atmega16u2 baud rate work 1/8 of setting #409

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

Closed
DMohammed opened this issue Apr 28, 2021 · 2 comments
Closed

atmega16u2 baud rate work 1/8 of setting #409

DMohammed opened this issue Apr 28, 2021 · 2 comments

Comments

@DMohammed
Copy link

I had an Arduino mega, atmega16u2 with a faulty chip, therefore, i swapped the IC for a new one, the problem is after the fix i can only not program the chip i tried the following :
1_using flip bootloader that was provided on the website
2_ I changed bootloader :
3_diffrent baud rate speed
4_change crystal
5_diffrent DFU files
none of the above solutions did work for me, then i proceeded to try another way that i found out with any baud rate speed i receive 1/8 of the initial speed but no luck there too all DFU file had the same problem, i tried the same procedure with normal Arduino and i had no problems

any help would be appreciated

@matthijskooijman
Copy link
Collaborator

Sounds like you need to program the fuses on your 16u2 chip. By default, they run with CKDIV8 fuse set (and probably also configured for internal oscillator), which typically explains a x8 or x16 slowdown of the CPU clock.

@DMohammed
Copy link
Author

Thank you
fixed based on the following link
https://github.com/nickgammon/arduino_sketches

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

No branches or pull requests

2 participants