UCCHDLC for 8309 twr board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UCCHDLC for 8309 twr board

跳至解决方案
651 次查看
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 解答
520 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
521 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

520 次查看
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 项奖励
回复