Skip to content

Please update mbed-os to have stdio baud rate configurable #23

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
markus-becker-tridonic-com opened this issue Jul 31, 2016 · 12 comments
Closed

Comments

@markus-becker-tridonic-com

No description provided.

@MarceloSalazar
Copy link
Contributor

@bogdanm

Could you please help to explain how to override the default baud rate for serial port & stdio? Thanks

@bogdanm
Copy link
Contributor

bogdanm commented Aug 1, 2016

I'm not sure I understand this. Currently, blinky doesn't use the serial port, so why do we need to configure the stdio baud rate for blinky?

@markus-becker-tridonic-com
Copy link
Author

True, that it doesn't user serial. But I took it as a starting point for an STM32F4 device. Possibly I should have filed this issue against mbed-os.

So, at the moment there are still hard-coded 9600 in the targets, which then make printf() (not pc.printf() ) not work as expected.

@ciarmcom
Copy link
Member

ciarmcom commented Aug 1, 2016

ARM Internal Ref: IOTMORF-332

@sg-
Copy link
Contributor

sg- commented Aug 3, 2016

which then make printf() (not pc.printf() ) not work as expected.

What is expected? 9600 is the default baudrate

@markus-becker-tridonic-com
Copy link
Author

If I modify the config.json of this example with core.stdio-serial-baudrate, I would expect it to use that value for pc.printf(), printf() and in other repos ns_trace() right from the beginning. What I have seen is that parts of the output are with 9600 and other parts with the configured value.

@sg-
Copy link
Contributor

sg- commented Aug 5, 2016

Thanks for the clarification. @geky

@markus-becker-tridonic-com
Copy link
Author

I think it is mostly this issue: ARMmbed/mbed-os#1969 and the related 9600 occurences: https://github.com/ARMmbed/mbed-os/search?utf8=%E2%9C%93&q=serial_baud%28obj%2C+9600&type=Code

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 9, 2016

@markus-becker-tridonic-com the best would be to move this to mbed-os repo. What's your target device?
we shall clean all of targets.

@markus-becker-tridonic-com
Copy link
Author

NUCLEO_F401RE, NUCLEO_F091RC and K64F.

Are you able to transfer this issue. Or shall I re-create?

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 9, 2016

Please recreate, provide a simple code snippet to reproduce. Thanks

@markus-becker-tridonic-com
Copy link
Author

Moved to ARMmbed/mbed-os#2396

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

7 participants