9 years, 5 months ago.

How to redirect the runtime error output to another port?

I've built my own board based on the LPC1768 mbed. Supposedly, when a runtime error occurs, it outputs a message to the USB serial. My board does not have this, but I use UART0 serial output. How do I redirect this? I have a test that executes the error("message") function, but nothing comes out my serial port.

1 Answer

9 years, 5 months ago.

Here are some examples on how to redirect it: http://developer.mbed.org/questions/3008/Best-way-to-override-error-for-productio/

The error function itself is weak these iirc, so you can also just implement your own error function.