Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I'm having an issue using the local file system, multiple Serials and mbed-rtos. I have adapted the longer "Hello World!" example from the https://mbed.org/handbook/LocalFileSystem page by adding the lines:
to the top of main and importing mbed-rtos (by official). I have imported the mbed-rtos library, but don't make any changes to main.c other than the four lines above.
It hangs on the fopen line (identified by using LED turn on/off). If I use only two Serials it is ok. It crashes if I use any three or all four.
In sumarry to recreate start a new project and import mbed-rtos to the project. Paste in the longer code example from the page https://mbed.org/handbook/LocalFileSystem. Add the lines above to the start of main routine and it will hang. removing mbed-rtos causes it to work again.