This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fopen write error sdmmc

I am driving a 32 GB SD card with Keil MDK5 Flash File System v6.14.1 with core LFN debug mode.
Init, Mounting, and also read operations from SD card works properly. But creating or deleting a file and then open it in write mode doesn't work at all.

device: stm32H750vbt6 with ARM CORTEX-M7

core clock (frequency): 480e6

SDMMC1 configured clock (frequency): 100e6

RTOS type is  CMSIS-RTOS2 Keil RTX version 5 (RTX5)

Number of open files that configured in FS_Config.c file: 5 

Heap Size = 0x2000 > 5 * (608) 

Stack Size: 0x400

Card Detect Input pin and Write Protect Input pin: not available

initialization code:

After debugging the following events occurred when I tried to open and create "M:\filesys\Dump_file.logo" in write mode:

The event TransferError is generated when data transfer is active and data block CRC check fails or Memory Card Control Layer does not receive ARM_MCI_EVENT_TRANSFER_COMPLETE event from the MCI driver.

Clever engineers, please help me to solve these bad events!!

 

0