2025-11-03 12:05 PM
Hello, I'm having problems with a simple task: receive blocks of data from UART. The blocks are sequences of 1-300 bytes, that are receiveid with a 1 second interval. The value is stored in one buffer of 350 bytes.
When I send a big block of 270 bytes after other blocks(of 60 bytes by example) in that 1s interval, the Stm32 RESETS! But if the interval is longer, like 5 seconds, it doesn't reset and receive the data correctly.
I tried with pooling and interruption, the result is the same. I'm using 115200 baud. Lowering the baud rate also reduces the interval that doesn't cause a reset, but I can't use this solution.
WatchDog is already disabled. By this moment, the code doesn't do anything more.
2025-11-03 12:15 PM
Welcome to the forum.
Please see How to write your question to maximize your chances to find a solution for best results.
Please show the relevant code - see: How to insert source code.
2025-11-03 1:34 PM
There is no direct link between receiving UART and resetting the chip. The reason has to be something specific to your code or hardware.
How do you know it's getting reset?
Read the flags in RCC_CSR2 on startup to determine the cause of the reset.