I would also make sure the stack size for the caller thread is set to at least 1k when using newlib-nano (2k with default newlib). If you're running out of memory you can push "main stack" on the BSP tab down to 1k (0x400)
↧