UCCHDLC for 8309 twr board

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

UCCHDLC for 8309 twr board

Jump to solution
529 Views
mdmuazzam
Contributor III

Hi ,all

        I am configuring ucc5 for hdlc in mpc8309twr board,and getting CRC error at the receive side .

I am able to send ppp data but that data is dropped at the other end because it contains crc error.

i have configured upsmr register for 16 bit crc.

hdlc controller  should append CRC but ,it's not happening so.

@Please reply if any suggestion.

Thanks

1 Solution
398 Views
alexander_yakov
NXP Employee
NXP Employee

1. CRC must be properly pre-initialized, please look QE Reference Manual, Table 14-3, fields C_MASK and C_PRES

2. CRC is transmitted only if L and TC bits are both set in TxBD, please look Table 14-6 for details.

3. CRC is transmitted msb first.

Here is a direct link to QE Reference Manual:

http://cache.freescale.com/files/netcomm/doc/ref_manual/QEIWRM.pdf 


Have a great day,
Alexander
TIC

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

View solution in original post

2 Replies
399 Views
alexander_yakov
NXP Employee
NXP Employee

1. CRC must be properly pre-initialized, please look QE Reference Manual, Table 14-3, fields C_MASK and C_PRES

2. CRC is transmitted only if L and TC bits are both set in TxBD, please look Table 14-6 for details.

3. CRC is transmitted msb first.

Here is a direct link to QE Reference Manual:

http://cache.freescale.com/files/netcomm/doc/ref_manual/QEIWRM.pdf 


Have a great day,
Alexander
TIC

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

398 Views
mdmuazzam
Contributor III

Thankyou alot for your kind response . I got CRC .same problem  i had not set bit TC in TxBD .so now i have set now and its working :smileyhappy::smileyhappy: .

Now my problem is that i am not getting RX packet and event handler is not executing for that .

0 Kudos