Skip to content

Baud rate setting in boot8266 is not ideal #9

Description

@pfalcon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions