On 2025-07-25 16:30:52, Kevin Witteveen wrote:
> After changing the config, changing code and uploading atleast 100 times,
> trying new things, I have discovered that I could specifically only open 8
> files before the ENOMEM error.
ENOMEM for opening files seems wrong. It should be ENFILE or EMFILE. I believe
this should be fixed.

> *Solution?*I'm sure there is a brilliant reason why
> BOARD_DMA_ALLOC_POOL_SIZE is specifically set to 8*512, but I think it is
> very important to document this.
> Another great addition would be to throw a specific error message when this
> out of memory problem happens. Something hinting towards
> BOARD_DMA_ALLOC_POOL_SIZE, FAT_DMAMEMORY or similar.
> 
> What do we think?
I think first person declared it to be 8*512, which made sense for that mcu,
but then ppl just copy pasted that value without thinking twice and here we
are ;)

Attachment: signature.asc
Description: PGP signature

Reply via email to