2026-05-30 11:04 AM - last edited on 2026-06-01 4:46 AM by mƎALLEm
Hello! I am using the following:
Using STM IDE: Version: 2.1.1
Build: 28236_20260312_0043 (UTC)
Working on the example for the STM32N6570-DK "VENC_SDCard_ThreadX", it seems to freeze after a few frames and loses link with debugger. Appreciate any thoughts on what could be causing this! I am using a 32GB micro-SD. I have isolated that the issue seems to be in app_filex.c inside of the function:
VENC_FileX_write((CHAR*)data, (LONG)size).
I am thinking there is a conflict between write speeds to the SD card but would be grateful for any insight from the group!
Thank you!
2026-06-01 11:00 AM
Hi @Woobie
I have extensively tested the VENC_SDCard_ThreadX application using EWARM and cannot reproduce the freeze or debugger disconnection you reported. The application runs stably without issues in my testing environment.
Upon reviewing the code, I assume that the VENC_FileX_write() function lacks robust error handling: which could mask SD card write failures in corner cases. However, this has not resulted in functional defects or freezes in my testing to be escalated.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-06-05 3:49 AM
Hi @FBL!
Thanks so much for looking into this! I am using the STM IDE Version: 2.1.1 and the example code under the STM32CubeIDE not EWARM. Not sure if this small difference could be the reason the issue is not reproduced. Appreciate your help!
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.