DuinOS: Small and Simple OS based on FreeRTOS

You need to modify your stack size within the config file using the default port because there is an initial task created using macros to mimic the arduino structure; e.g. loop() {}. Even if you don't have any code in the "loop" function a task is created regardless.

You can make the changes suggested in the initial posting as it alleviates this problem and gives you more control. Furthermore your using native FreeRTOS calls instead of regenerated wrappers/macros serving the same purpose e.g. createTaskLoopWithStackSize versus native xTaskCreate(vShtReadTask, (signed portCHAR *) "ShtRead", 304, NULL, NORMAL_PRIORITY, &xShtReadHandle).

Eric