STM32F103: SDIO flashsd?

Basic Information:

Printer Model: Tronxy x5sa
MCU / Printerboard: chitu v6 (STM32F103)
Host / SBC: Ubuntu 22.04
klippy.log (flashsd.py related… no klippy(

Describe your issue:

I’ve got the Tronxy doing the flashsd using the software SPI, but I’m pretty keen on getting sdio working, since the hardware ‘should’ support it.
There even looks to be sdio code from Gregor Molter for the STM32 series (although only active for STM32F4 series in mainline).

Does anyone know if Gregor is still involved with Klipper anywhere?
Or has anyone played around with the sdio stuff at all?

Traceback within
Traceback (most recent call last):
  File "/home/bevan/klipper/scripts/spi_flash/spi_flash.py", line 1674, in main
    spiflash.run()
  File "/home/bevan/klipper/scripts/spi_flash/spi_flash.py", line 1614, in run
    self.run_reactor_task(self.run_sdcard_upload)
  File "/home/bevan/klipper/scripts/spi_flash/spi_flash.py", line 1597, in run_reactor_task
    k_reactor.run()
  File "/home/bevan/klipper/klippy/reactor.py", line 292, in run
    g_next.switch()
  File "/home/bevan/klipper/klippy/reactor.py", line 340, in _dispatch_loop
    timeout = self._check_timers(eventtime, busy)
  File "/home/bevan/klipper/klippy/reactor.py", line 158, in _check_timers
    t.waketime = waketime = t.callback(eventtime)
  File "/home/bevan/klipper/klippy/reactor.py", line 48, in invoke
    res = self.callback(eventtime)
  File "/home/bevan/klipper/scripts/spi_flash/spi_flash.py", line 1569, in run_sdcard_upload
    self.mcu_conn.configure_mcu(printfunc=output_line)
  File "/home/bevan/klipper/scripts/spi_flash/spi_flash.py", line 1383, in configure_mcu
    self._configure_mcu_sdiobus(printfunc=printfunc)
  File "/home/bevan/klipper/scripts/spi_flash/spi_flash.py", line 1376, in _configure_mcu_sdiobus
    raise SPIFlashError(
SPIFlashError: Failed to Initialize SD Card. Is it inserted?

The hardware schematic shows SDIO connected, and these are the pins that are working for software SPI. Plus Marlin has it setup for the Tronxy configuration.

x5sa-main_board.pdf (134.9 KB)

Sorry, I didn’t understand what you want to do, but to put the klipper on the Robin Nano STM32F103, the screen had to be connected, this may be your case.

I already have Klipper SPI transfer to Chitu v6 board working.
However, this board should support SDIO transfer also.
So I’m trying to see if anyone has had this (SDIO transfer for SD card) working. or knows if Gregor Molter is still around the Klipper project… he wrote the code for SDIO.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.