Skip to content

Portenta H7 (STM32H7xx): eMMC support #945

@cl0rm

Description

@cl0rm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions