Friday, 2025-08-08

*** tpb <[email protected]> has joined #litex00:01
*** keesj <keesj!~keesj@user/keesj> has quit IRC (Server closed connection)00:09
*** keesj <keesj!~keesj@user/keesj> has joined #litex00:09
*** sajattack <[email protected]> has quit IRC (Read error: Connection reset by peer)01:05
*** sajattack <[email protected]> has joined #litex01:05
*** Degi <Degi!~Degi@2a02:3100:2e83:2500:ba27:ebff:fe08:dd7e> has quit IRC (Ping timeout: 276 seconds)02:39
*** Degi <Degi!~Degi@2a02:3100:29df:f800:ba27:ebff:fe08:dd7e> has joined #litex02:41
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Remote host closed the connection)02:42
*** MoeIcenowy <MoeIcenowy!~MoeIcenow@2001:19f0:7002:790:5400:4ff:fea8:9a29> has quit IRC (Server closed connection)02:58
*** MoeIcenowy <[email protected]> has joined #litex02:59
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex03:06
*** cr1901_ is now known as cr190104:13
*** TMM <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)04:36
*** TMM <[email protected]> has joined #litex04:37
*** _whitelogger <[email protected]> has quit IRC (Remote host closed the connection)07:48
*** _whitelogger <[email protected]> has joined #litex07:54
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. 08:13
Flea86jeandet_: Were you trying using spi or full sd mode?08:35
jeandet_Mostly SD mode08:36
Flea86I see. I have full sd mode working successfully with ECP5 here, though I do not use ulx3s platform08:37
Flea86Does spi mode work?08:37
Flea86I started off with spi mode initially myself08:37
Flea86@jeandet_08:39
jeandet_You can init the SDCard with bare metal code/driver?08:39
Flea86I think I used linux-on-litex framework to get up and running08:41
Flea86wait no, I did also try compiling a baremetal example that loaded from sd08:42
Flea86I cannot recall what mode that used however08:42
Flea86some spinning torus example or something :)08:43
jeandet_Which also means, you could get the BIOS to init the SD card08:43
Flea86Correct08:43
Flea86Let me check something08:43
*** acathla <[email protected]> has quit IRC (Server closed connection)08:45
Flea86jeandet_: When you compile your SoC core, are you using --with-spi-sdcard option? 08:45
*** acathla <[email protected]> has joined #litex08:46
Flea86I would first try compiling your SoC using spi mode first08:46
Flea86-first :)08:46
jeandet_I did something similar, I have a wrapper around ulx3s target and manually call `self.add_spi_sdcard(software_debug=True)`08:47
jeandet_But I only tested SPI mode with default BIOS08:47
Flea86Right OK. Just so you know, I used vexriscv core for my evaluation08:48
Flea86jeandet_ "But I only tested SPI mode with default BIOS" and does that work?08:48
jeandet_In fact with a custom code and calling `spisdcard_init` seems to work08:49
jeandet_With the BIOS it always failed to call the sdcard init CMD08:49
jeandet_Note that I did those tests before removing the ESP32 which might have been the culprit then 08:50
Flea86I do not recall needing to manually call self.add_spi_sdcard() and just used the option switch08:50
Flea86Ah okay08:50
Flea86Perhaps that was the issue08:50
jeandet_https://github.com/enjoy-digital/litex/issues/171208:51
Flea86I am not familiar with ulx3s myself08:51
jeandet_yeah, so at least SPI mode works now \o/08:51
Flea86but I recall the sdcard i/o is shared with esp32 pins08:51
Flea86or something08:51
jeandet_Yes exactly 08:53
jeandet_With SPI mode I don't see any function to write a block is this intended only for reading SD cards?08:54
Flea86jeandet_: This is where I am currently https://dillo-browser.github.io/gallery/img/fpga-rv32.jpg :D08:55
Flea86My biggest problem however, is getting buildroot to produce what I want/need (still learning..)08:58
*** _catircservices <_catircservices!catircserv@2a01:4f8:c012:5b7:0:1:0:63c> has quit IRC (Server closed connection)09:21
*** _catircservices <_catircservices!catircserv@2a01:4f8:c012:5b7:0:1:0:63c> has joined #litex09:21
*** d_olex_ <d_olex_!~d_olex@user/d-olex:35658> has quit IRC (Remote host closed the connection)10:52
*** d_olex_ <d_olex_!~d_olex@user/d-olex:35658> has joined #litex10:52
*** TMM <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)14:53
*** TMM <[email protected]> has joined #litex14:53
*** CarlFK <[email protected]> has joined #litex16:47
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a540-ffc2-0-2a66-2cca-f4c6-3180.ipv6dyn.netcologne.de> has joined #litex20:11
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Quit: Connection reset by peep)21:55
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex22:00
*** ElfenKaiser <ElfenKaiser!~deadsalmo@2a0a-a540-ffc2-0-2a66-2cca-f4c6-3180.ipv6dyn.netcologne.de> has quit IRC (Quit: 🫀🫀🫀🫀)22:46
*** _whitelogger <[email protected]> has quit IRC (Remote host closed the connection)23:31
*** _whitelogger <[email protected]> has joined #litex23:37

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!