Hello, I think there's a problem with set_errno() in nx_start(), when CONFIG_TLS_ALIGNED is not set: I disabled SERIAL_CONSOLE and DEV_CONSOLE, because I wanted to test CDCACM_CONSOLE. Now calling fs_fdopen() in group_setupstreams() leads to a call of set_errno(). But since tls_get_info() returns NULL pointer for stack_alloc_ptr the board goes into hardfault. For the CONFIG_TLS_ALIGNED case it would return the actual stack pointer from arm_getsp() which accesses the stack pointer directly. I think thread local storage for nx_start() should be handled differently, or the stack_alloc_ptr should be set to a sane value. I attach my config for reference, perhaps I'm missing something.
Regards, Johannes