enable UART error logger in hardfault handler