feat: add host-mounted SD card support, mirror display to host#715
Draft
ngxson wants to merge 15 commits intocrosspoint-reader:masterfrom
Draft
feat: add host-mounted SD card support, mirror display to host#715ngxson wants to merge 15 commits intocrosspoint-reader:masterfrom
ngxson wants to merge 15 commits intocrosspoint-reader:masterfrom
Conversation
Member
|
Can this be used for automated testing, I wonder |
Contributor
Author
|
I think this PR lays the foundation of communication between host <--> device, which may enable the development of auto or semi-auto testing tools in the future. I imagine having a script that automatically compiles the firmware, flash it to the device, prepare a fake |
This was referenced Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR is built upon the recently added HAL infrastructure. It aims to help developers to test and debug changes more quickly.
The "emulator" in this context is not a VM (not QEMU, see #500 for why), but more like the
-vmounting option on Docker. Currently, it allows to:.sdcarddirectory on host machine (or PC) as a virtual SD cardIt requires #656 to work (hence why you see a lot of changes here)
Screen.Recording.2026-02-05.at.23.52.53.mp4
To try this out:
emulatedpio environmentpython scripts/dev_server.pyKnown bugs:
Serialobject. If 2 tasks (aka 2 threads) trying to useSerial.printat the same time, the emulator can crash. We should implement a proper logger in near future.TODO:
AI Usage
While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.
Did you use AI tools to help write this code? --> The python script and web UI are vibe-coded. C++ is hand-written.