1) am I doing bad practice, opening that much file descriptors per task?
if yes, I could open and close them on each access, which is actually
each 100ms, if that would be less overhead (guess not).
No, it is perfectly fine to change the number of descriptors, provided that you have at least 3.

2)Of course I tried to set CONFIG_NFILE_DESCRIPTORS=8, but when I do that,
the system jumps into  arch/arm/src/armv6-m/up_assert.c :_up_assert(),
before even finishing
nx_start().
Is there anything else that must be considered when increasing the
CONFIG_NFILE_DESCRIPTORS?

No, other than it will greatly increase memory usage.  That is a big deal on that platform.

Check CONFIG_STDIO_BUFFER_SIZE, the increased memory usage will go into (1) file descriptor structures, and (2) buffers for C-buffered I/O. You can set CONFIG_STDIO_BUFFER_SIZE as low as zero, but then you will have no buffering that that will affect realtime preformance.

Greg


Reply via email to