One thing that I found odd is the excessive stack usage of the coroutines
> library.
> On the simulator I had to set the stack to 1M.
>
> I am afraid that this specific library may not be usable on actual MCU
> systems...
>

Is this a Linux library?

I have seen this kind of stack usage a few time when code written for Linux
is ported to NuttX.  Linux code sometimes allocates huge arrays on the
stack.  This is harmless on Linux since the stack is virtualized and only
backed by RAM if actually used.  But it can cause catastrophic memory usage
in an embedded system with a flat address space.

Reply via email to