mbed_override_console() bug ? Got incomplete fault message.

23 Mar 2019

Board : NuMaker-PFM-M453

OS: mbed-os-5.11.5

After using the mbed_override_console() to change the default UART Serial pins, I got the incomplete fault message.

Implement

FileHandle *mbed::mbed_override_console(int) {
    static UARTSerial s(PA_2, PA_3);
    return &s;
}

Incomplete fault message

++ MbedOS Fault HanMemMana

Con
R0   :
R1   :
R2   :
R3   :
R4   :
R5   :
R6   :
R7   :
R8   :
R9   :
R10  :
R11  :
R12  :
SP   : 200038EC
LR   : 000026BF
PC   : 3F800000
CPUID:
HFSR : 00000000
MMFSR: 00000000
BFSR : 00000000
Mode :
Priv : P
Stack

-- MbedOS Fau

++ MbedOS Error Info ++
Error Status: 0x80Fault ex
Location
Error Value
Current Thread: main  Id: 0x200039C8 Entry: 0x8E43 S
For more info, visit: https://armmbed.g
-- MbedOS Er
27 Jun 2019

I was experiencing the same issue by overriding the console output UART to two different pins. Using the LPC1768 with mbed-os-5.11.4, after updating to mbed-os-5.12.4 the issue went away.