Simple multithread (main+2 threads) code raising out of memory error

Ahoj,

that is problem of resources maybe? Your board have only 16KB of SRAM and the full MbedOS functionally need a lot of resources.

The bare metal profile (no RTOS functionality) is optimal for this memory size with Mbed.

BR, Jan