Skip to content

Conversation

JordanYates
Copy link
Contributor

Add support at the logger layer for burst write operations. Particularly
for SD cards, this can drastically increase write throughputs, depending
on the size of the associated RAM buffer.

Improves the time to write 32kB of data on a STM32 SDMMC interface from 65ms down to 4ms.

Fix the re-initialise behavior of the `exfat_multi_file` logger when the
filesystem is full. Prevents trailing empty files from existing and
incorrect block counts on reboot.

Signed-off-by: Jordan Yates <[email protected]>
Validate the fixed behaviour of the exfat_multi_file backend.

Signed-off-by: Jordan Yates <[email protected]>
Add support at the logger layer for burst write operations. Particularly
for SD cards, this can drastically increase write throughputs, depending
on the size of the associated RAM buffer.

Signed-off-by: Jordan Yates <[email protected]>
Implement burst write support for the filesystem backends.

Signed-off-by: Jordan Yates <[email protected]>
@JordanYates JordanYates force-pushed the feature/logger_bulk_write branch from ecb81ce to 01ac8c8 Compare June 14, 2025 05:54
Copy link

codecov bot commented Jun 14, 2025

Codecov Report

Attention: Patch coverage is 89.33333% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
subsys/data_logger/data_logger.c 86.11% 2 Missing and 3 partials ⚠️
subsys/data_logger/backends/exfat_multi_file.c 90.62% 1 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

@JordanYates JordanYates force-pushed the feature/logger_bulk_write branch from 01ac8c8 to 575afbc Compare June 14, 2025 06:40
Add a test for validating the behaviour of the filesystem based backends
(with `write_burst` support) when combined with RAM buffering.

Signed-off-by: Jordan Yates <[email protected]>
@JordanYates JordanYates force-pushed the feature/logger_bulk_write branch from 575afbc to 1b925be Compare June 14, 2025 06:47
@JordanYates JordanYates merged commit 6418380 into main Jun 14, 2025
15 checks passed
@JordanYates JordanYates deleted the feature/logger_bulk_write branch June 14, 2025 07:37
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