ucc hdlc(ucc7) in mpc8309twr ,interrupt handler not getting called on data reception

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ucc hdlc(ucc7) in mpc8309twr ,interrupt handler not getting called on data reception

1,245件の閲覧回数
mdmuazzam
Contributor III

Hi all,

        I am writing HDLC controller driver for mpc8309twr on UCC7 means HDLC_1,So after all configuration am able to get ppp data on RXD pin of processor,BUT the interrupt handler which i have registered ,that is not executing,

as well as clock TX and RX both are OK.

TXD is also OK only for 7e pattern. But when try to send some data not going too.

my main question is on reception of data on RXD pin ,why my handler is not executing.

my dts file looks like ,

hdlc0@2600 {
            device_type ="network";
            compatible ="ucc_hdlc";
            cell-index = <7>;
            rx-clock-name = "clk14";
            tx-clock-name = "clk13";
            reg = <0x2600 0x200>;
            interrupts = <42>;
            interrupt-parent = <&qeic>;
        };

in _probe function ,for ethernet suppose  interrupts = <32> , so after irq_parse_map function i get irq=18.whereas in my case ucc7 ,i get same 42.

i have attached my entire code,Your answers are well appreciated.

Original Attachment has been moved to: twr_hdlc.c.zip

0 件の賞賛
返信
4 返答(返信)

1,016件の閲覧回数
Pavel
NXP Employee
NXP Employee

Use the following command to get interrupt number under Linux on the MPC8309 board:

cat /proc/interrupts

 

It looks like that you try to use incorrect interrupt number.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,016件の閲覧回数
mdmuazzam
Contributor III

Hi,

   Now i am able get interrupt but i am unable to send data

Rxf and txb fiels of ucce event register is 0.

0 件の賞賛
返信

1,016件の閲覧回数
mdmuazzam
Contributor III

Hi,Pavel

           Actually my process of using irq number and registering irq is correct .I have got interrupts ,but i am getting only for error cases.UCCE is the event register ,which tells which kind of event has occurred.so in that i am getting busy,flag,idle set etc.But main event like RXF and TXB i should get for data processing ,the same is not happening.

do i have problem with SDAM or my TxBDs or RxBDs handling.

thanks.

0 件の賞賛
返信

1,016件の閲覧回数
mdmuazzam
Contributor III

hi Pavel ,

             I have seen by cat /proc/interrupt . it show 42 number only for my device.I have given number according to data sheet only for mpc8309twr borad.

0 件の賞賛
返信