Page 1 of 1

[STM32F103C8T6] Maple Mini software serial communication

Posted: Mon Aug 14, 2023 12:01 am
by myksj1105
hello.

MCU: STM32F103C8T6

I am trying to do software serial through the board above.
By any chance, can you let me know what pins are available, or is it ok to proceed with random pins?

Re: [STM32F103C8T6] Maple Mini software serial communication

Posted: Mon Aug 14, 2023 6:18 am
by myksj1105
After searching, it seems that there is no 'Software Serial' library.

Is that right?

Re: [STM32F103C8T6] Maple Mini software serial communication

Posted: Mon Aug 14, 2023 6:33 am
by fpiSTM
It is a builtin library provided within the core
https://github.com/stm32duino/Arduino_C ... wareSerial

Anyway I advise to use real uart.

Re: [STM32F103C8T6] Maple Mini software serial communication

Posted: Mon Aug 14, 2023 9:14 am
by ag123
Agree with @fpiSTM ,
one might as well use Hardware serial
https://github.com/stm32duino/Arduino_C ... wareserial
which works well, and STM32s has pretty good hardware UARTs.
some 3d printers literally use that and feed an entire stream (megabytes) of the model printing gcode and printer controls from octoprint, i.e. those uarts are used in real world use cases.
and I actually use the HardwareSerial as a usb-uart dongle for a single board computer serial system console !
https://forum.armbian.com/topic/29202-o ... ent-169524