I am using the non-blocking configuration of the debug console (DEBUG_CONSOLE_TRANSFER_NON_BLOCKING) because I need to be able to poll for input without blocking. However, I would like to output information from my hardfault handler. Is there a way within the debug console to cause buffered output to be transferred out of the debug console UART while in a hardfault (which blocks interrupts)? In previous projects, I have directly called the UART's ISR until the output buffer was empty, but it seems like there should be a way to do it within the fsl_debug_console library.
Hi,
can you tell us the part number you are using?
BR
XiangJun Rong
It's a LPC55S69JBD64K.
And, just to be clear, the solution of calling the interrupt handler has the desired effect, it just feels like a bit of a kludge so I would prefer to use a method built into the fsl debug console library.
Hi,
I suppose that the hardfault event is not an interrupt event, it is an exception event, I suppose that you can not output char in the ISR of hardfalut via uart.
Hope it can help you
BR
XiangJun Rong