FAQ and troubleshooting
The card is not detected
Section titled “The card is not detected”Check the shell first:
cardsight> mmccardsight> blk- An empty slot is not an error. Insert a TF card and wait for the hot-plug task.
mmc ejectforces the detect state to absent; runmmc insertto clear it.- A failed identification is retried with a longer poll period. Reseat the card and check the UART log.
- If
blkshows nommcblk0, the MMC driver did not publish a disk; see Hardware for the slot and pin details.
The panel is black or the colours are wrong
Section titled “The panel is black or the colours are wrong”The panel path depends on several settings that must agree:
- DC and reset must be GPIO outputs, not alternate functions.
- The SPI controller must set the DHB/DDB/SDM bits.
- The panel init sets
MADCTL = 0x40andCOLMOD = 0x06; the display publishes RGB888 with no byte swap. - LVGL is configured for RGB888, not RGB565.
The display test command cycles red, green, blue, white and black. If those colours are wrong, the
problem is in the panel/SPI path, not the UI.
USB does not enumerate
Section titled “USB does not enumerate”- Connect the board’s OTG port, not the UART port.
- Start an export first: Connect USB on the Direct page, or start the proxy.
- The default identity is VID
0x1D6B, PID0x0105. cardsight usb diskexports the whole disk read-only;lazyproxy usb rwexports the synthesized view read-write.- Stop USB before starting a different export; the driver refuses a second device.
A direct export is read-only
Section titled “A direct export is read-only”usb_mass_storage_force_read_only() is sticky in the current source. After cardsight usb disk, a
later Connect USB on the Direct page can inherit the read-only flag. Stop USB and start the lazy
proxy once with lazyproxy usb rw, or reboot, before expecting a read-write direct export. This is a
documented limitation, not a card fault. See USB export.
flush failed after removing the card
Section titled “flush failed after removing the card”The storage proxy writes host changes to a staging area and flushes them to the source partitions. If the card is removed first, the card is no longer powered and the staged data cannot be written back. That data is lost. Stop the export and let it flush before removing the card.
Formatting fails
Section titled “Formatting fails”- Stop USB first; formatting is refused while a USB export is running.
- A read-only card cannot be formatted.
- A partition that is too small for the requested filesystem is rejected. FatFs returns
FR_MKFS_ABORTEDfor a volume below its minimum size (mapped to-ENOSPC) andFR_NOT_ENOUGH_COREwhen its work area is insufficient (mapped to-ENOMEM). - The layout editor clears the partition table; back up the card first.
The file browser reports an error
Section titled “The file browser reports an error”The error sheet names the failed operation and path. Cannot open partition means the volume did
not probe or mount; Directory not found means the path is stale; Path too long exceeds
VFS_PATH_MAX; Read failed is a filesystem or block-layer error. Removing the card leaves the
detail view by design.
The build fails
Section titled “The build fails”- Fetch submodules:
git submodule update --init --recursive. The host build needs FatFs, lwext4 and LVGL. - The lwext4 patch is applied at configure time from
software/patches/lwext4/; a modified submodule checkout can make the patch fail. - SyterKit must point at a public commit containing
boards/yuzuki-cardsight/. XUANTIE_TOOLCHAINmust point at the XuanTie newlib toolchain for the RISC-V preset.- The docs build needs Emscripten and Doxygen. Keep a previous build and use
CARDSIGHT_SKIP_WASM=1/CARDSIGHT_SKIP_API=1only when those directories already exist.
Where to ask
Section titled “Where to ask”Use Support and the issue tracker, and include the board revision, commit, toolchain, card model, commands and serial log. Security issues follow SECURITY.md.