zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.02k stars 6.17k forks source link

imx_usdhc: disk_access_init on MIMXRT595 Board fails (Error code -134) #75350

Open attina opened 2 days ago

attina commented 2 days ago

Describe the bug The disk_access_init failed with error code -134 on the NXP MIMXRT595 Eval Board.

What target platform are you using? mimxrt595_evk_cm3 (NXP MIMXRT595 Eval Board)

What have you tried to diagnose or workaround this issue? None

To Reproduce Steps to reproduce the behavior:

Following project variables are enabled:

CONFIG_DISK_ACCESS=y CONFIG_LOG=y CONFIG_FILE_SYSTEM=y CONFIG_FAT_FILESYSTEM_ELM=y CONFIG_PRINTK=y CONFIG_MAIN_STACK_SIZE=2048 CONFIG_DISK_DRIVER_SDMMC=y CONFIG_SD_LOG_LEVEL_DBG=y CONFIG_SDHC_LOG_LEVEL_DBG=y CONFIG_SDMMC_LOG_LEVEL_DBG=y

Expected behavior disk_access_init successfully.

Actual behavior Booting Zephyr OS build v3.6.0 Booting Zephyr OS build v3.6.0 [00:26:34.261,726] sd: Card does not support CMD8, assuming legacy card [00:26:34.262,947] main: Storage init ERROR! [00:26:35.867,130] sd: Card does not support CMD8, assuming legacy card [00:26:35.868,348] fs: fs mount error (-5) Error mounting disk. [00:26:35.868,374] fs: fs not mounted (mp == 0x30180fe0) Booting Zephyr OS build v3.6.0 Booting Zephyr OS build v3.6.0 [00:38:50.392,247] sd: sd_init_io: Host controller support 3.3V max [00:38:50.392,254] sd: sd_init_io: Resetting power to card [00:38:50.392,286] usdhc: imx_usdhc_set_io: SDHC I/O: bus width 1, clock 0Hz, card power OFF, voltage 3.3V [00:38:50.892,391] usdhc: imx_usdhc_set_io: SDHC I/O: bus width 1, clock 0Hz, card power ON, voltage 3.3V [00:38:51.392,492] usdhc: imx_usdhc_set_io: SDHC I/O: bus width 1, clock 400000Hz, card power ON, voltage 3.3V [00:38:51.392,501] usdhc: imx_usdhc_set_io: BUS CLOCK: 386718 [00:38:51.394,317] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.394,599] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.394,880] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.395,162] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.395,443] sd: sd_send_interface_condition: SD CMD8 failed with error tion: SD CMD8 failed with error -5 [00:38:51.396,006] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.396,294] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.396,578] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.396,860] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.397,141] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:51.397,146] sd: Card does not support CMD8, assuming legacy card [00:38:51.398,349] main: Storage init ERROR! [00:38:51.398,379] sd: sd_init_io: Host controller support 3.3V max [00:38:51.398,385] sd: sd_init_io: Resetting power to card [00:38:51.398,410] usdhc: imx_usdhc_set_io: SDHC I/O: bus width 1, clock 0Hz, card power OFF, voltage 3.3V [00:38:51.898,493] usdhc: imx_usdhc_set_io: SDHC I/O: bus width 1, clock 0Hz, card power ON, voltage 3.3V [00:38:52.398,589] usdhc: imx_usdhc_set_io: SDHC I/O: bus width 1, clock 400000Hz, card power ON, voltage 3.3V [00:38:52.398,599] usdhc: imx_usdhc_set_io: BUS CLOCK: 386718 [00:38:52.400,395] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.400,677] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.400,959] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.401,242] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.401,524] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.401,806] sd: sd_send_interface_condition: SD CMD8 fd_interface_condition: SD CMD8 failed with error -5 [00:38:52.402,374] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.402,654] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.402,935] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.403,217] sd: sd_send_interface_condition: SD CMD8 failed with error -5 [00:38:52.403,221] sd: Card does not support CMD8, assuming legacy card [00:38:52.404,420] fs: fs mount error (-5) Error mounting disk. [00:38:52.404,442] fs: fs not mounted (mp == 0x30180fe0)

Impact Prototype: Annoyance Series: Showstopper

Environment (please complete the following information):

OS: Windows Toolchain: Zephyr SDK Version used: v3.6.0

github-actions[bot] commented 2 days ago

Hi @attina! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙