2016-07-19 07:55 AM
Hello, I need a sw emulated uart. I am trying to use the sw emulation available here:
but I am only able to receive/trasmit once. If I try to receive/trasmit a 2nd time, it doesn't work. Please could you help or suggest an alternative?2016-07-19 06:02 PM
Please could you help or suggest an alternative?
Use a real USART, there's usually a lot of them.Perhaps you can provide a little foundation, like why, and which STM32 specifically we are talking about, because they make hundreds now across half a dozen families.It is a topic that comes up occasionally, and has been discussed here before, I'm not looking to wade into your implementation work, but others might.2017-05-30 10:57 AM
Hi, I'm using the same library to add a software UART on STM32F401VC @ PB6 & PB7. The ST library uses TIM1 and DMA2, but I need them for other tasks, only TIM4 is free. All other hardware UARTS and pins are used. I have modified the library replacing:
- 'TIM1' by 'TIM4'
- 'DMA2' by 'DMA1'
- 'CHANNEL_6' by 'CHANNEL_2'
- 'Stream1' by 'Stream0'
- 'Stream2' by 'Stream3'
- etc,
The modified library does not work, when I try to send data, as soon as DMA1 Stream0 is enabled the DMA transfer error flag is set and the corresponding DMA error interrupt is serviced.
Maybe DMA1 is not able to transfer data from RAM to GPIO_BSSR using TIM4_CH1 trigger?.
Regards