-
-
Notifications
You must be signed in to change notification settings - Fork 213
Description
I have sucessfully used SD Cards with the Portenta.
However I cant get it to work with eMMC Modules. I use a custom Board for this.
the relevant code is in BSP.c
With the HAL_SD functions I get errors, HAL_SD_Init Fails.
If I replace the with the fitting HAL_MMC_xxx functions (including changing the types), it does initialize the eMMC Chip, showing that it can interact with the chip. The size / block size etc. shown when enabling SD_DBG seem to work.
It does also read / write when trying to format with FatFileSystem (the underlying HAL function calls return OK every single time). However the format call fails with error code -22 (EINVAL).
It seems that data written are not really written.
I can provide my modified code (BSP.c/.h, SDMMCBlockDevice.cpp) if that helps.