HDLC_RX_CR and HDLC_RX_NO error and data length is 1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HDLC_RX_CR and HDLC_RX_NO error and data length is 1

1,246 Views
mdmuazzam
Contributor III

Hi,

    I have written hdlc driver for freescale mpc8309twr board,and i am getting CRC error on receive and non-octet aligned as well as with the help of bd_status  , i am getting length of packet  equal to 1 , So where i am doing any mistake.

And at the time of sending packet i am instructing hdlc controller to add CRC ,so even i am getting reply for a packet but lenght with one.

My setup is like that : Router1(mpc8309) ----> modem(v.35 to dsl converter)-------->modem(dsl to v.35 converter)---->Router2(mpc8309)

Your answer is appreciated.

Thanks

Muazzam(india)

10 Replies

1,012 Views
alexander_yakov
NXP Employee
NXP Employee

Typical reason for "Non-octet aligned frame" error is excessive noise on clock input, this is used to sample incoming data. Please check if input clock waveform is correct and clock source output impedance is matched with trace impedance.


Have a great day,
Alexander
TIC

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

1,012 Views
mdmuazzam
Contributor III

Hi,

   Can i use Received frames threshold(RFTHR) register  to minimize the effect of Non-aligned octed issue due to excessive noise in input clock.

0 Kudos

1,012 Views
alexander_yakov
NXP Employee
NXP Employee

No, I do not think this will be helpful

0 Kudos

1,012 Views
mdmuazzam
Contributor III

Thanks Alexander,

        But when my device is connected to slave mode modem (which gives me clock tx and rx both) then its working fine .

what happens when we connect with Master mode modem.

Basically in CRO i observed ,that i am getting distorted  RX input clock in Master mode modem but very clear input clock in slave mode.

And also tested modems in tester and found modem correct.

So what kind of circuit may distort the signal?.

Thanks

Muazzam(india)

0 Kudos

1,012 Views
alexander_yakov
NXP Employee
NXP Employee

Please submit scope pictures of "distorted RX input clock in Master mode" and "clear input clock in slave mode".

Also please describe your hardware connections to between MPC8309 and modem.

0 Kudos

1,012 Views
mdmuazzam
Contributor III

Hi alex,

           I have changed clock number ,i.e RXLCK =14 for UCC5 in mpc8309 and TXCLK =13,so now i just reversed and it's working .

           So my doubt is why d i need to interchange the clock numbers in UCC.Is it one kind of bug in MPC8309 Processor ?.

Thanks

Muazzam(india)

0 Kudos

1,012 Views
alexander_yakov
NXP Employee
NXP Employee

If my understanding is correct, this means your external connection is done in this way. I mean, TX clock is connected to RX clock input and viceversa.

0 Kudos

1,012 Views
mdmuazzam
Contributor III

No alex , all connections are correct ,recently i seen in revision 1 of mpc8309RM manual they have mentioned that clock numbers have to interchanged.

Alex if you can tell ,diiferent then HDLC, Why do we need to change the base address of IMMRBAR from FF40_0000 to e000_0000 in init.cfg file which is given by freescale?

Thanks

Muazzam(india)

0 Kudos

1,012 Views
alexander_yakov
NXP Employee
NXP Employee

Yes, you are right. I usually assume customers use most recent revisions of of our documents. 

Internal space can be moved from its default position to any other place, if necessary. This is done by writing to IMMRBAR. Usually, IMMR is moved because upper part of memory is used for NOR flash, however this depends on flash size, so - up to designer.  

0 Kudos

1,012 Views
mdmuazzam
Contributor III

Hi alex,

          Can you tell me how can i reduce noise according to you which is input signal?.

0 Kudos