MSP430 하드웨어로 CRC 계산

기술노트 41610

아키텍처:

MSP430

컴포넌트:

general

업데이트:

2018-02-28 오전 2:30

Introduction

Some MSP430 devices has a built-in hardware CRC calculator. This Technical Note shows how to use it to verify a linker (XLINK) calculated checksum - or a software (C algorithm) calculated checksum.

Solution

See the example project (Example project (IAR Embedded Workbench for 430 5.60.3).zip) and screenshot for IAR Embedded Workbench for MSP430 version 5.60.3 (and newer) and MSP430FR5739.

Linker checksum settings

See Project > Options > Linker > Checksum.

The linker checksum in this example is configured as follows:

 Size: 2 bytes
Alignment: 2
Algorithm: CRC16(0x11021)
Complement: As is
Bit order: MSB first
Initial Value: 0x0
Checksum unit size: 8-bit

The hardware calculated checksum in this example matches the linker calculated checksum.

 

All product names are trademarks or registered trademarks of their respective owners.

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.