디버깅 중 잘못된 체크 섬

기술노트 48021

아키텍처:

All

컴포넌트:

debugger

업데이트:

2018-02-28 오전 1:55

Introduction

When a software breakpoint is set, a Break instruction will be set in flash memory. This will make a checksum calculation over that memory range fail.

Solution

Hardware breakpoints or no breakpoints at all should be used if debugging checksum algorithms.

To get control of the usage of the hardware breakpoints check Technical Note 31070.

Specifics for different devices

Atmel AVR devices

  • In Xmega devices, software breakpoints are regularly used. This makes it impossible to calculate a correct checksum in debug mode.
  • DebugWIRE only has software breakpoints. You can not debug checksum algoritms for devices that use debugWIRE.

Specifics for some debug probes

Using J-Link in IAR Embedded Workbench for ARM

The J-Link driver can set 'flash breakpoints', and those must be disabled.
When the J-Link Control Panel is open (for example when debugging) the flash breakpoints can be disabled at : Settings > Flash breakpoints.

Using a FET-probe in IAR Embedded Workbench for MSP430

IAR Embedded Workbench for MSP430 version 5.51 (and newer) has flash breakpoints enabled by default. (So if all hardware breakpoints are in use, then this type of problem can occur).

 

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

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