Checking uart overrun and framing error flags in linux.
In some microcontrollers I can access overrun and framing error flags programmatically. Is it possible to access these flags from command line?
Linux – checking uart overrun and framing error flags in linux
beaglebone blacklinuxuart
Related Topic
- Electronic – Clearing USART (UART) interrupt flags in an STM32
- Electronic – PIC32 UART buffer overrun in MIDI receiver application
- Electrical – SMT32 HAL UART crash on possible overrun
- Electrical – STM32 skips UART frames after framing error
- Electrical – Checking interrupt flags for UART data receiving and transmitting on STM32
Best Answer
I've read and written to registers in the past by writing a kernel module that creates an entry in the /proc filesytem. Then I can read the registers by doing
cat /proc/lpc32xx_regcheck
for example.This code might be garbage; It might be against "best practices" to do it this way. I'm not a Linux programmer by any means, but it worked for me for debugging.