Just out of curiosity, is it possible to have some feature like Software Serial in STM32 controllers. If yes, how? Are any such libraries available?
Sure, it's software after all.
You're looking for bits at a prescribed periodicity, so either you're outputting bits via GPIO, or synchronize to edges and reading GPIO pin.
Presumes of course that you understand the signalling used by a serial bit stream.
See AN4655 and STSW-STM32156 - Implementing an emulated universal asynchronous receiver transmitter on STM32F4 microcontroller series (…
TI even has library modules for that purpose, in source code if I remember correctly.
For their line of Cortex M controllers, of course, but porting would not be too difficult.
However, the performance penalty for "serious" baud rates (>4.8 kBaud) are considerable (and listed in TI's documents).
Well, that is a great option will try to play with it.
Found it here, Software Serial for MSP430
If yes, how?
In pretty much the same way as any other processor!
" If yes, how?"
basically the same as you would on other MCUs.
here is an example: UART for all! – dannyelectronics
not difficult to extend it to your STM32.
If you are referring to Arduino, there are ways to the get at least some Arduino features in STM32F. But are they needed for UART, perhaps not. Uart works with these CPUs quite well, and you can choose what pin you want to use for serial communication.
It is indicative that those involved in the design need to sit down and seriously review the design choices made and the part selection.
Indeed - choose a part which has sufficient UARTs for your requirements!
That, and frankly at better grasp of the requirements that got you there. You're already at the end of a decision tree where you've burned all the lifeboats, and all you have left is an assortment of bad outcomes.
"choose a part which has sufficient UARTs for your requirements!"
instead, pick one that does the job. we all work within a set of constraints and having all the (hardware) uarts (or whatever in question) isn't always a viable alternative for us.
Well of course but as I clearly stated that this is for fulfilling my curiosity. Would be making a library for it and it surely seems like a great experience at least for me.
But your "curiosity" didn't extend to the simple exercise of putting "STM32 Software Serial" into google?
That would've answered the question immediately; and the App Notes mentioned by waclawek.jan are right there in the top 5
Anyhow, so now you can mark the question as answered: Why people got their answer but not mark correct
Retrieving data ...