Hi All,
I am trying to enable and use UART2 on Beaglebone black board.
I have enabled it successfully, and connected USB to serial cable to UART2 pins, and I sent some characters to UART2 and I could see those characters on picocom -b 115200 /dev/ttyUSB1 console.
But the problem is when I type some characters on the picocom -b 115200 /dev/ttyUSB1 console, picocom -b 115200 /dev/ttyUSB0 console is getting hung. I enabled interrupts to detect the characters on picocom -b 115200 /dev/ttyUSB1
Can some one help me to resolve this issue.
Below is the code snipet for interrupt enable.
This code snippet is written inside probe funciton.
fdev->irq = platform_get_irq(pdev,0);
printk ( “irq number for uart2 = %d\n”, fdev->irq);
reg_write(fdev,UART_IER_RDI,UART_IER);
ret = devm_request_irq(&pdev->dev,fdev->irq,uart_handler,IRQF_SHARED,“serial”,fdev);
if(ret) {
printk (“Couldnot request irq\n”);
}
static irqreturn_t uart_handler(int irq, void *dev) {
printk(“IRQ is handled\n”);
return IRQ_HANDLED;
}
Regards,
Madhu