Re: Problem with mmcsd

2024-04-14 Thread Alan C. Assis
Hi Ahmad,

Did you add support for your custom board correctly? This that come to my
mind:

1) Did you have configured and enabled the right source clock?
2) Did you have configured the right pins at
boards/arm/stm32f7/yourboard/include/board.h ?
3) Did you create a similar file like
boards/arm/stm32f7/nucleo-144/src/stm32_sdio.c to detect and initialize
your card?
or boards/arm/stm32h7/linum-stm32h753bi/src/stm32_sdmmc.c (although it is
STM32H7, it is very similar).
4) Did you enable all necessary configs to your board? It is similar what
we have to STM32H7 board:
boards/arm/stm32h7/linum-stm32h753bi/configs/sdcard/defconfig

Best regards,

Alan

On Sun, Apr 14, 2024 at 11:13 AM Ahmad Noori  wrote:

> Hi
>
> I have a custom board with stm32h743vit6
> I port nuttx to this board and i am using it.
> I have problem with mmcsd sdio and i cant mount sd card. I get error 19
> when mount sd card.
>
> I test my hardware with stm32cubeide and its ok.
>
> Please help me to solve this problem.
> Thank you
>


Re: Problem with mmcsd

2024-04-14 Thread Gregory Nutt

On 4/14/2024 7:02 AM, Ahmad Noori wrote:

Hi

I have a custom board with stm32h743vit6
I port nuttx to this board and i am using it.
I have problem with mmcsd sdio and i cant mount sd card. I get error 19
when mount sd card.

I test my hardware with stm32cubeide and its ok.

Please help me to solve this problem.
Thank you


In errno.h:

    92 #define ENODEV  19
    93 #define ENODEV_STR  "No such device"

The logic in drivers/mmcsd/mmcds_sdio.c reports ENODEV when there is no 
card detected in the slot (and possibly other reasons). First step is to 
find out which condition generates the ENODEV.