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

Please allow a configurable default UART bitrate #191

Open
harbaum opened this issue Dec 15, 2023 · 0 comments
Open

Please allow a configurable default UART bitrate #191

harbaum opened this issue Dec 15, 2023 · 0 comments

Comments

@harbaum
Copy link

harbaum commented Dec 15, 2023

Currently, the uart bitrate used for console or basic stdout via printf etc is hard coded to 2000000 bit/s in the board config like bsp/board/bl616dk/board.c:

bflb_wo_uart_init(wo, 2000000, GPIO_PIN_21);

and

cfg.baudrate = 2000000;

Not all serial uart adapters work at this rate, and e.g. some cheap cp2102 based devices I have won't cope with that rate. Instead, 921600 bit/s works fine, so I need to patch the SDK to get this working.

It would be nice to have some place to adjust this setting on a per-project basis, so I can leave the SDK untouched when changing the bit rate.

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