Hello,
So, I changed this line 134 in variant_NUCLEO_L476RG.cpp to:
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; --> RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV2;
Now clock is changed 80Mhz to 40Mhz, enough to get a baudrate of 1200.
Final serial configuration --> Serial.begin(1200 ...
Search found 3 matches
- Mon May 29, 2023 11:04 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: Serial baudrate 1200
- Replies: 2
- Views: 13812
- Mon May 29, 2023 9:02 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: Serial baudrate 1200
- Replies: 2
- Views: 13812
Re: Serial baudrate 1200
Hello,
I've been digging a little bit... I found to get 1200 baudrate I should down the clock frequency.
Now, I'm trying how to proceed with it.
Another point is to use SoftwareSerial and manage 7bits Parity even manually.
I hope I can share with you my results.
Any help or comments will be great ...
I've been digging a little bit... I found to get 1200 baudrate I should down the clock frequency.
Now, I'm trying how to proceed with it.
Another point is to use SoftwareSerial and manage 7bits Parity even manually.
I hope I can share with you my results.
Any help or comments will be great ...
- Fri May 26, 2023 1:28 pm
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: Serial baudrate 1200
- Replies: 2
- Views: 13812
Serial baudrate 1200
Hello,
I'm trying to set a Serial communication with baudrate of1200, 7 databits, parity even.
Actually, it is for a SD-12 communication.
Anyone knows how set a Serial with a baudrate of 1200?
I tryed to use SoftwareSerial to get baudrate 1200 but then the issue is with databits and parity ...
I'm trying to set a Serial communication with baudrate of1200, 7 databits, parity even.
Actually, it is for a SD-12 communication.
Anyone knows how set a Serial with a baudrate of 1200?
I tryed to use SoftwareSerial to get baudrate 1200 but then the issue is with databits and parity ...