Skip to content

SD card leads to assert error for 101st log file #988

Description

@dominiknatter

Hi,

I have observed a high accumulation of these errors today:
SYS: Assert failed at crazyflie-firmware/vendor/FreeRTOS/tasks.c:1856

More precisely, they occurred every time I tried to switch the usd.logging param to 0 (I'm using the "enable on startup" flag).
At first I thought it's just another assert error with SD cards (see our discussions here). However, I have then realized that my SD card contains logs from 0 to 99 now. When deleting the file with suffix 99, this error vanishes for one logging procedure, and then arises again for the next.

So in conclusion it seems this error occurs when the system cannot write any 2-digit suffix to the log filename anymore.

Is allowing for only 100 log files (aka using only 2-digit suffixes) a dedicated, desired choice from your side or could this be changed? Either way, I thought having this error documented could be useful, given that the error message is not very straightforwardly pointing to this cause.

Best,
Dominik

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues that describe nice additions to this repository.suitable for contributionIssues that are good candidates for external contributors.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions