Open attie-argentum opened 3 months ago
Thanks @attie-argentum. Then, what we need is to add the proposed patch to hal_stm32. Would you have the possibility to do so ?
Yes, sure - I can prepare a PR for hal_stm32
(though to clarify, I don't expect that to "resolve" this issue, as above)
wn to an issue in the STM32 HAL, and the team have produced
Ho, sorry, I read this too fast. Let's hold on then.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Describe the bug I/O fails when using an STM32L476, with a Micro SD card, configured for 4-bit bus mode.
Consider the following
nucleo_l476rg.overlay
paired withBOARD=nucleo_l476rg
andCONFIG_FILE_SYSTEM_SHELL=y
.This works fine:
While changing to
bus-width = <4>;
results in an error:I originally tracked this down to an issue in the STM32 HAL, and the team have produced a patch that they believe works (I'm unable to verify directly at this moment).
To Reproduce Steps to reproduce the behavior:
nucleo_l476rg.overlay
(below)cmake -B ./build-sd -GNinja ./zephyr/samples/subsys/shell/shell_module -D BOARD=nucleo_l476rg
ninja -C build-sd/
st-flash --connect-under-reset write ./build-sd/zephyr/zephyr.bin 0x08000000
fs mount fat /SD:
in the device's shellfs erase_write_test /SD:/test.bin 0x100000 1
, observe error./zephyr/samples/subsys/shell/shell_module/boards/nucleo_l476rg.overlay
:Environment (please complete the following information):