This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash Data Storage Garbage Collection takes a long time

Hello,

We are allocating a large amount of pages (100 pages, ~400kB) for the Flash Data Storage module in order to hold collected data. As a result, the fds garbage collection will take around 3-10 seconds (depending on how many invalid records are present). This makes sense as during garbage collection, valid records are collected. The pages left will be erased, which will incur the flash page erase time.

However, it appears that the garbage collection will stop interrupts from happening. We will run garbage collection before we save data to flash, which occurs at an interval. As such, our unit will be locked up for a few seconds. We are concerned about this effect on other interrupts (namely RF, timekeeping, and alarms).

Is there a way to run garbage collection in stages? Or a setting so that garbage collection does not block interrupts?

Thank you for your help.

Parents Reply Children
Related