Skip to content

UART baudrate bug #10

@itzandroidtab

Description

@itzandroidtab

The uart ouput seems to have a strange bug where if you start using the uart to quick it goes on a different baud rate

Compiled program

#include "hwlib.hpp"

int main( void ){
    // kill the watchdog (ATSAM3X8E specific)
    WDT->WDT_MR = WDT_MR_WDDIS;    
    
    hwlib::wait_ms(1); // This looks like it fixes the behaviour of the uart output
    
    for(int i = 0; i < 100; i++){
        hwlib::target::uart_putc('A');
    }
}

Without the wait and CONSOLE_BAUDRATE set to 115200 baud
Not working uart

With the wait and CONSOLE_BAUDRATE set to 115200 baud
Working uart

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