Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SD card support #293

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Add SD card support #293

wants to merge 3 commits into from

Conversation

alex-luxonis
Copy link
Contributor

@alex-luxonis alex-luxonis commented Dec 3, 2021

Accessible from Script nodes usually at:
/media/mmcsd-0-0 - first partition
/media/mmcsd-0-1 - second partition
...
The partition(s) should be pre-formatted as FAT32.
Note the Script node must set: .setProcessor(dai::ProcessorType::LEON_CSS)

TODO:

  • add C++ example (available only in python for now)
  • [DONE] auto-unmount when the app is closed, to flush any cached data and prevent filesystem corruption

/media/mmcsd-0-0    -- first partition
/media/mmcsd-0-1    -- second partition
...
The partition(s) should be pre-formatted as FAT32.
Note the Script node must set: .setProcessor(dai::ProcessorType::LEON_CSS)
No file handles should be left opened for unmount to succeed, not even `os.chdir('/media/mmcsd-0-0')`.
Anyway, a `sync()` is attempted first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant