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

More than approx 290 packages inside binary file causes too long write times #77

Closed
gauteh opened this issue Aug 5, 2022 · 0 comments
Closed

Comments

@gauteh
Copy link
Owner

gauteh commented Aug 5, 2022

With more than about 290 packages in a collection of files we start getting FifoOverrun, i.e. the RTC interrupt is not run often enough. The only part that is in a critical section is the actual write (https://github.com/gauteh/sfy/blob/main/sfy-buoy/src/storage/mod.rs#L210). The immediate solution is to cap the package size to something like 250 packages (at 24MHz SPI for storage, but 150 package for 12MHz).

Could also move the Kalman-filter to the main loop and just collect samples in the interrupt, this would make it easier to write raw-data to the SD-card -- if we have time.

Maybe due to file being re-located when size increases.

@gauteh gauteh closed this as completed Aug 8, 2022
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

No branches or pull requests

1 participant