Skip to main content
Associate
May 9, 2024
Question

STM32F103: Sometimes USART stops working

  • May 9, 2024
  • 9 replies
  • 2239 views

Hi, 

We are using STM32F103 in our project. Established IPC communication over USART. We have almost finished our development. We kept our setup running for long, sometimes we found that IPC-USART communication getting stuck, IPC does not work until we reset it by external pin. Is there any issue with USART of this chip?

Your help would be appreciated.

Thank you.

This topic has been closed for replies.

9 replies

mƎALLEm
ST Technical Moderator
May 9, 2024

Hello,

What do you mean by "IPC communication" ? 

and by this:  "IPC does not work until we reset it by external pin" ?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate
May 9, 2024

IPC - Inter Processor Communication using USART1

we have one BLE chip which communicates with the STM32F103 chip through IPC communication. That means these chips exchanging data over USART. At ST site USART1 is used, with 115200 Baud rate, DMA is used.

Here BLE chip can reset ST chip by pulling low it's NRST.

After IPC-USART1 communication broken from ST site, BLE chip resets ST chip after waiting for 30 seconds.

At ST site we used Window watchdog, which I tested, and it is working fine.

Andrew Neil
Super User
May 9, 2024

@Aniket_Karanje wrote:

IPC - Inter Processor Communication


So "IPC communication" is a tautology, then - isn't it?

 


@Aniket_Karanje wrote:

IPC-USART1 communication broken from ST site, 


How do you know it's broken from the ST side ?

How often does this "stuck" situation occur?

Is there anything that seems to make it better or worse?

What debugging/investigation have you done to find what's going on?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
May 9, 2024

Check for and clear any pending error status on the STM32F103 UART, say noise, framing, parity errors, etc. as these would preclude further reception until cleared/acknowledged.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate
May 13, 2024

Yes