carlk3 / no-OS-FatFS-SD-SDIO-SPI-RPi-Pico

A FAT filesystem with SDIO and SPI drivers for SD card on Raspberry Pi Pico
Apache License 2.0
126 stars 21 forks source link

Building for RISC-V ? #72

Open udo-munk opened 1 month ago

udo-munk commented 1 month ago

I'm trying to build one of my z80pack VM's for the RISC-V instead of the ARM cores. Looks like FatFs is not prepared for this yet?

Scanning dependencies of target picosim [ 10%] Building C object CMakeFiles/picosim.dir/picosim.c.obj In file included from /home/udo/work/z80pack/picosim/rp2350/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/src/sd_driver/sd_regs.h:4, from /home/udo/work/z80pack/picosim/rp2350/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/src/sd_driver/sd_card.h:36, from /home/udo/work/z80pack/picosim/rp2350/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/src/include/hw_config.h:18, from /home/udo/work/z80pack/picosim/rp2350/picosim.c:30: /home/udo/work/z80pack/picosim/rp2350/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/src/include/util.h:24:10: fatal error: RP2350.h: No such file or directory 24 | #include "RP2350.h"

carlk3 commented 1 month ago

Right. I haven't even begun to look at RISC-V yet, and it might be a while before I have time. However, if someone else wants to take a crack at porting it, you are welcome to submit a Pull Request.

udo-munk commented 1 month ago

Understandable. I had a brief look, that is the part the deals with interrupts, DMA and all the low level stuff, must be relearned for RISC-V, if one isn't familar with the architecture already. Certainly not a quick over the weekend project.