cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
wangdeyou
Visitor
Visitor
1,493 Views
Registered: ‎12-04-2017

uartlite Rx can't receive data

i have the zedboard development board,running Linux system (4.6.0)。Four uartlite IP cores are used in block design.in the /dev,we can see ttyUL1, ttyUL2, ttyUL3, ttyUL4, and ttyUL4.When I use the command echo 1 >/dev/ttyul1, I can receive data on the serial terminal. But when I send data using a serial termina,cat /dev/ttyUL1 receives no data.

 

cat /proc/interrupts

cat _proc_interrupt.png

 

my devicetree

0 Kudos
Reply
18 Replies
wangdeyou
Visitor
Visitor
1,421 Views
Registered: ‎12-04-2017

I've solved this problem。because in the dts file ,uartlite interrupts num is not right.

0 Kudos
Reply
736 Views
Registered: ‎02-11-2019

Hello..
i am also facing same issue can you please let me know what chages you done it in dtsi file.
0 Kudos
Reply
731 Views
Registered: ‎02-11-2019

Hello..

Please help me with this i am also facing same problem like how you are getting .

i am attaching my dtsi file find an let help out of this ?

0 Kudos
Reply
wangdeyou
Visitor
Visitor
722 Views
Registered: ‎12-04-2017

can you speeak chinese?

兄弟,中国人吗?

0 Kudos
Reply
719 Views
Registered: ‎02-11-2019

Hello..
Thank you for replay back ?
Sorry i don't know chinese .please let help with this
0 Kudos
Reply
wangdeyou
Visitor
Visitor
707 Views
Registered: ‎12-04-2017

you can check inteerrupt num and irq id.
interrupt num= irq_id - 32.

IRQF2P[15:8] is ID#91:84
IRQF2P[7:0] is ID#68:61
reference linking:
https://www.xilinx.com/support/answers/51763.html#description



0 Kudos
Reply
696 Views
Registered: ‎02-11-2019

Hello ..

Please find the attached images . how i connected the interrupt's 

i don't understand what you mention in the link below ?

can you help me with my dtsi file what done is correct are wrong 

plint.JPG
0 Kudos
Reply
wangdeyou
Visitor
Visitor
691 Views
Registered: ‎12-04-2017

please tell me which interrupt line in concat connect to uartlite interrupt.
0 Kudos
Reply
683 Views
Registered: ‎02-11-2019

Hello.. 

Please find the below image .the below line i connected for uartlite ip core.

irglines.JPG
0 Kudos
Reply
675 Views
Registered: ‎02-11-2019

Hello..
Please find the below attachment.shall I need to change anything in my devicetree file please let me help with this?
0 Kudos
Reply
wangdeyou
Visitor
Visitor
675 Views
Registered: ‎12-04-2017

In4, irq id is 65, interrupt num is 33;

In5, irq id is 66,  interrupt num is 34;

In6, irq id is 67, interrupt num is 35;

In7, irq id is 68, interrupt num is 36;

In10,irq id is 86,  interrupt num is 54;

Refer to the table below。

if your uartlite@42c40000 interrupt connect to In4, in dts file, node of uartlite@42c40000 should be

serial@42c40000 {
...
interrupts = <0x0 33 0x1>;
...
};

 

 

搜狗截图20200908213224.png
0 Kudos
Reply
528 Views
Registered: ‎02-11-2019

Hello..

My issue is resolved with uartlite's thank you very much.

One more issue i have with axi-gpio . in my design i have 17 gpio's. for this i need to connect interrupt's for GPIO. 

i made my dtsi like how you spefied the interrupt connection table  .  But interrupts for the GPIO are not enabling is there any thing i need to do in .dtsi ?

Please find the attachements  ? 

1.pps_in(0x4126_0000)

2.pps_out (0x4122_0000)

3.irnss_pps(0x4125_0000)

remaing Axi-gpio i connected without interrupt . can please help me with this ?

Shall i need to change any thing in kernal for this Gpio interrupt enableing ?

pps_in(gpio).JPG
irnss_pps.JPG
pps_out.JPG
bootgpio.JPG
gpiointerrupt.JPG
0 Kudos
Reply
525 Views
Registered: ‎02-11-2019

Hello..
Can you Please help me with GPIO interrupt enabling ?
0 Kudos
Reply
wangdeyou
Visitor
Visitor
508 Views
Registered: ‎12-04-2017

sorry,it's too long,i need some time to review.
You can refer to this link :
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841846/AXI+GPIO
0 Kudos
Reply
465 Views
Registered: ‎02-11-2019

Hello..
Can you get any idea on my issue ?
Please let me know where I am going wrong.help me with this
0 Kudos
Reply
436 Views
Registered: ‎02-11-2019

Hello ..
Please let me know whether you will get my problem or not
0 Kudos
Reply
wangdeyou
Visitor
Visitor
428 Views
Registered: ‎12-04-2017

sorry,i don't know yet
0 Kudos
Reply
423 Views
Registered: ‎02-11-2019

Hello..
Please let me know if you get any information regarding this
0 Kudos
Reply