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

Baud rate setting in boot8266 is not ideal #9

Open
pfalcon opened this issue Jan 3, 2017 · 0 comments
Open

Baud rate setting in boot8266 is not ideal #9

pfalcon opened this issue Jan 3, 2017 · 0 comments

Comments

@pfalcon
Copy link
Owner

pfalcon commented Jan 3, 2017

Fix from #2 reads:

    // At this point, hardware doesn't yet know that it runs with 26MHz
    // crystal oscillator instead of "default" 40MHz, so adjust baud rate
    // accordingly.
    uart_div_modify(UART0, UART_CLK_FREQ / (BAUD_RATE * 40 / 26));

This is however appears to be true only for reset/powerup. When rebooted using machine.reset(), crystal is apparently remains configured as 26MHzm so baud rate is off. So, need to check actual system bus speed.

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

1 participant