cancel
Showing results for 
Search instead for 
Did you mean: 

Example Challenges: VENC_SDCard_ThreadX

Woobie
Associate

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!

2 REPLIES 2
FBL
ST Employee

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.




Best regards,
FBL

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!