Skip to main content
Visitor II
May 9, 2024
Question

STM32F103: Sometimes USART stops working

  • May 9, 2024
  • 2 replies
  • 2176 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.

    2 replies

    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" ?

    Visitor II
    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.

    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?

    Graduate II
    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.

    Visitor II
    May 13, 2024

    Yes