I’m fairly new to MBED OS. And need some help figuring out how to debug effectively. By doing various things, I can trigger an “RTX error code 2” in my application.
Searching through the code to find the meaning of RTX error code ‘2’, I discovered it means OS_ERROR_FIFO_OVF. OK…so what FIFO?? Luckily MBED prints the ‘task id’ which appears to be a RAM address.
RTX error code: 0x00000002, task ID: 0x200158C8
Looking in the .MAP file the closest address I found is
But its not helpful at all to me and reading through the OS code is hard work too…I dont want to understand the OS internals…just use them --too many pointers and macros and abbreviated function names!
- How can I find out which thread (i.e. C/CPP code!!) this is?
- Why might this be happening?
- Do I need to recompile MBED with some special debug features turned on?
Any tips appreciated.