本文主要是介绍【K70例程】017硬件CRC测试_IAR,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
By Mcuzone
使用J-LinkV8
IAR版本6.6
调试串口波特率:115200
基于MDKK70-EK_T43硬件平台
实验现象:
编译并下载调试程序,根据串口提示信息进行测试。
串口输出信息:
====== CRC Lab ==========
Please select CRC width (16-bit/32-bit):
1. CRC16
2. CRC32
select:1
Please select CRC polynomial:
1. poly = 0x1021 (CRC-CCITT)
2. poly = 0x8408 (XMODEM)
3. poly = 0x8005 (ARC)
4. poly = 0x04C11DB7 (CRC32)
5. others
select:1
Please select type of Transpose for input:
1. No Transposition
2. Only transpose bits in a byte
3. Transpose both bits and bytes
4. Only transpose bytes
select:4
Please select type of Transpose for Read:
1. No Transposition
2. Only transpose bits in a byte
3. Transpose both bits and bytes
4. Only transpose bytes
select:4
XOR final checksum (y/n)?y
Please enter seed in hex:0102
Please enter an ASCII Message:Mcuzone
CRC result = 0x901C
Press any key to continue...,'q' to quit!
IAR版本6.6
调试串口波特率:115200
基于MDKK70-EK_T43硬件平台
实验现象:
编译并下载调试程序,根据串口提示信息进行测试。
串口输出信息:
====== CRC Lab ==========
Please select CRC width (16-bit/32-bit):
1. CRC16
2. CRC32
select:1
Please select CRC polynomial:
1. poly = 0x1021 (CRC-CCITT)
2. poly = 0x8408 (XMODEM)
3. poly = 0x8005 (ARC)
4. poly = 0x04C11DB7 (CRC32)
5. others
select:1
Please select type of Transpose for input:
1. No Transposition
2. Only transpose bits in a byte
3. Transpose both bits and bytes
4. Only transpose bytes
select:4
Please select type of Transpose for Read:
1. No Transposition
2. Only transpose bits in a byte
3. Transpose both bits and bytes
4. Only transpose bytes
select:4
XOR final checksum (y/n)?y
Please enter seed in hex:0102
Please enter an ASCII Message:Mcuzone
CRC result = 0x901C
Press any key to continue...,'q' to quit!
例程及示例:
链接: http://pan.baidu.com/s/1qWCWLJI 密码: xvul
这篇关于【K70例程】017硬件CRC测试_IAR的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!