<jeandet_>
Hello, I can't get the SD card working on the ULX3S, I tried several thing, I even desoldered the ESP32, tried on others IOs with another connector. I'm using LiteX and build with Yosys/Trellis provided in OSS-CAD-Suite. It always fails with init.
<Flea86>
jeandet_: Were you trying using spi or full sd mode?
<jeandet_>
Mostly SD mode
<Flea86>
I see. I have full sd mode working successfully with ECP5 here, though I do not use ulx3s platform
<Flea86>
Does spi mode work?
<Flea86>
I started off with spi mode initially myself
<Flea86>
@jeandet_
<jeandet_>
You can init the SDCard with bare metal code/driver?
<Flea86>
I think I used linux-on-litex framework to get up and running
<Flea86>
wait no, I did also try compiling a baremetal example that loaded from sd
<Flea86>
I cannot recall what mode that used however
<Flea86>
some spinning torus example or something :)
<jeandet_>
Which also means, you could get the BIOS to init the SD card
<Flea86>
Correct
<Flea86>
Let me check something
acathla has quit [Server closed connection]
<Flea86>
jeandet_: When you compile your SoC core, are you using --with-spi-sdcard option?
acathla has joined #litex
<Flea86>
I would first try compiling your SoC using spi mode first
<Flea86>
-first :)
<jeandet_>
I did something similar, I have a wrapper around ulx3s target and manually call `self.add_spi_sdcard(software_debug=True)`
<jeandet_>
But I only tested SPI mode with default BIOS
<Flea86>
Right OK. Just so you know, I used vexriscv core for my evaluation
<Flea86>
jeandet_ "But I only tested SPI mode with default BIOS" and does that work?
<jeandet_>
In fact with a custom code and calling `spisdcard_init` seems to work
<jeandet_>
With the BIOS it always failed to call the sdcard init CMD
<jeandet_>
Note that I did those tests before removing the ESP32 which might have been the culprit then
<Flea86>
I do not recall needing to manually call self.add_spi_sdcard() and just used the option switch