Preventing "Target not responding" errors while plotting real-time MPU6050 data via ST-Link v3set

Hello Everyone, I'm using ST-Link v3set with a custom build board. I'm trying to see the real time plotting of the angle measured with MPU6050. The first few seconds everything works fine, but then I started to lose connection with the board "Target is not responding, retrying..." and the live expression stop working. If I add a delay like HAL_Delay(500), it will work but it's just too slow to see the real time graph, decreasing it will cause the problem described above I chatGPT said the SWO buffer might be overflowing but I'm not sure how I can control the buffer size. If anyone has ever encounter similar issue please give advice. Thank you.
attachment 0
2 Replies
ZacckOsiemo
ZacckOsiemo4mo ago
Did you ask ChatGPt how to fix the buffer overflow?
wafa_ath
wafa_ath4mo ago
Yes, I did! ChatGPT suggested to reducing the data rate, increasing the SWO buffer size. But none of that work
Want results from more Discord servers?
Add your server