Skip to content

Quick start

This page is the shortest path from a checkout to a running board. The build and boot pages hold the details; the simulator on the overview page is available if you do not have the board yet.

  • A Yuzuki CardSight board and a USB cable for its OTG port.
  • A TF card for testing.
  • A USB-UART adapter on UART0: PH13/PH14, 115200 8N1.
  • xfel for FEL loads and SPI NOR writes.
  • The XuanTie-900 GCC elf newlib toolchain, exposed through XUANTIE_TOOLCHAIN.
  • Git, CMake 3.20 or newer, and a C compiler for the host tests.
  • For the documentation site only: Node.js, Emscripten and Doxygen.
Terminal window
git clone --recurse-submodules https://github.com/YuzukiHD/CardSight.git
cd CardSight
export XUANTIE_TOOLCHAIN=/path/to/Xuantie-900-gcc-elf-newlib-x86_64-V3.2.0
cd software
cmake --preset riscv
cmake --build build/riscv

The images are written to software/build/riscv/images/:

File Purpose
init_psram_efex.bin Initialises PSRAM on the E907 and returns to FEL
cardsight.bin C907 application image, linked at 0x12000000
c907_boot_efex.bin Releases the C907 at entry 0x12000000

No prebuilt images are published. If you only want to inspect the UI, use the simulator on the overview page instead.

With the board in FEL mode:

Terminal window
xfel write 0x00100000 software/build/riscv/images/init_psram_efex.bin
xfel exec 0x00100000
xfel write 0x12000000 software/build/riscv/images/cardsight.bin
xfel write 0x00100000 software/build/riscv/images/c907_boot_efex.bin
xfel exec 0x00100000

xfel write copies the files into SRAM and PSRAM. It does not program the SPI NOR, and the image is lost on power-off.

To keep firmware across power cycles, write a boot image to the SPI NOR with xfel spinor write <address> <image>. Back up the existing flash with xfel spinor read first, and read the written range back to verify it. The address and image must match the board’s boot layout; the RAM images above are not a NOR boot image. The complete commands, the eFEX split and the memory map are in Flashing and boot.

Open the UART at 115200 8N1. The firmware starts the console, then the application, and the UI is drawn on the panel. The prompt is:

cardsight>

Useful first checks:

cardsight> mmc
cardsight> blk

mmc reports the card identity, mode and tuning state. blk lists mmcblk0 and its partitions. Insert a TF card if the slot is empty; the hot-plug task identifies it and publishes the disk.

The five-page UI is described in On-screen UI. Use Stop safely before removing the card while USB or the storage proxy is running.