*** tpb has joined #litex | 00:00 | |
futarisIRCcloud | https://twitter.com/enjoy_digital/status/1214847743824449536?s=19 | 10:06 |
---|---|---|
futarisIRCcloud | Great job _florent_ ... Shame we don't have one here at the Gold Coast. | 10:07 |
*** keesj has joined #litex | 15:31 | |
keesj | lo | 15:31 |
somlo | _florent_: do you remember how this should work (in litesdcard firmware): https://github.com/enjoy-digital/litesdcard/blob/master/litesdcard/firmware/sdcard.c#L253 ? | 16:01 |
tpb | Title: litesdcard/sdcard.c at master · enjoy-digital/litesdcard · GitHub (at github.com) | 16:01 |
somlo | i.e., there's no "sdcore_issue_cmd_write" anywhere else throughout the sources, so I wonder if this would still work for 8-bit csr_data_width... | 16:01 |
somlo | s/work/compile/ for that matter :) | 16:02 |
somlo | bunnie[m]: "sdcore_issue_cmd_write" was introduced by one of your litesdcard commits (f528e8e); did that ever compile for you? I'm getting an unresolved symbol for it when I try to build for 8bit csr_data_width | 17:09 |
_florent_ | somlo: i'll do some tests tomorrow, to verify that the examples are working (i will also probably remove the arty example since it required a specific adapter and will replace it with a board that has an SDCard slot, like the Nexys4DDR :), this way we'll be able to run the same tests). | 20:08 |
futarisIRCcloud | _florent_: Sounds good. I've got a mimasv2 with a micro sd card slot. | 20:11 |
somlo | _florent_: https://pastebin.com/yRe1z460 (I think, at least). Got clock setting and init to work, still hangs during any attempt to write blocks | 20:19 |
tpb | Title: [Diff] diff --git a/litex_boards/official/platforms/nexys4ddr.py b/litex_boards/officia - Pastebin.com (at pastebin.com) | 20:19 |
_florent_ | futarisIRCcloud: good, porting the example to mimasv2 should be easy | 20:20 |
_florent_ | somlo: thanks for the patch, i was just looking at that | 20:20 |
_florent_ | somlo: are you driving SD_RESET to 0? "the SD_RESET signal needs to be actively driven low by the FPGA to power the microSD card slot" | 20:22 |
somlo | _florent_: nope, is that something I'd have to add to the litesdcard gateware? | 20:24 |
somlo | _florent_: also https://pastebin.com/pDaNwF4X (but this one probably needs more parameterization, so the sdcard thing isn't always added by default) | 20:26 |
tpb | Title: [Diff] diff --git a/litex_boards/official/targets/nexys4ddr.py b/litex_boards/official/ - Pastebin.com (at pastebin.com) | 20:26 |
_florent_ | that's maybe better to do it yes, at least in the target | 20:26 |
somlo | _florent_: finally, one commit dumping the software into litex-proper: https://github.com/gsomlo/litex/tree/gls-sdcard-devel | 20:33 |
tpb | Title: GitHub - gsomlo/litex at gls-sdcard-devel (at github.com) | 20:33 |
somlo | _florent_: so we should add an explicit reset subsignal, and hard-code it in the gateware if it exists (i.e., if it's not None, or something) | 20:40 |
somlo | _florent_: I'm trying this right now: https://pastebin.com/9FL7dKjv -- will report back if it does anything for me | 20:54 |
tpb | Title: [Diff] diff --git a/litesdcard/phy.py b/litesdcard/phy.py index 3a13606..9ac8c6e 10064 - Pastebin.com (at pastebin.com) | 20:54 |
somlo | obviously, after adding rst_p to the nexys4ddr platform file: https://pastebin.com/9FD5nmhy | 20:58 |
tpb | Title: [Diff] diff --git a/litex_boards/official/platforms/nexys4ddr.py b/litex_boards/officia - Pastebin.com (at pastebin.com) | 20:58 |
somlo | _florent_: assuming the above is all correct, I'm still timing out on setting block count, then hanging hard on write_multiple_block during sdtest | 21:11 |
keesj | somlo: are you also testing using https://github.com/enjoy-digital/litesdcard/blob/master/test/test_sdcard.py | 21:25 |
tpb | Title: litesdcard/test_sdcard.py at master · enjoy-digital/litesdcard · GitHub (at github.com) | 21:25 |
somlo | keesj: nope, just running commands from the bios prompt manually | 21:29 |
somlo | roughly following https://github.com/enjoy-digital/litesdcard/blob/master/README#L85 | 21:29 |
tpb | Title: litesdcard/README at master · enjoy-digital/litesdcard · GitHub (at github.com) | 21:29 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!