DebugWIRE

기술노트 83572

아키텍처:

AVR

컴포넌트:

debugger

업데이트:

2017-12-22 오전 5:18

Introduction

Some errors may occur when using Atmel debugWIRE, like:

Failed to enter SPI mode. Check that your squid cable is correctly attached. If the SPIEN fuse is not enabled, the part must be programmed using high-voltage.

.. or ..

No contact with device when using debugWIRE

The DWEN fuse must be enabled to use debugWIRE. Do you want to program this fuse from JTAGICE mkII ? (All SPI lines must be connected before you click YES)

Click NO to just retry making contact. (You might need to power thedevice off and on before clicking NO)

Solution

You need to think about the following when using debugWIRE:

  • The bit SPIEN should be enabled before using the "Fuse Handler" in IAR Embedded Workbench for AVR. You can use Atmel AVR Studio to enable this bit.
  • After setting the fuses, switch off the target board power and then switch it on again. Otherwise the fuses will not be set.
  • After using the "Fuse Handler", power cycle the board even though you have not made any changes in it. The "Fuse Handler" will enable the SPI interface by temporary disabling the DWEN bit.
  • In some Atmel documentation it is stated that high-voltage programming is needed to enable the ISP interface. This can be true for Atmel AVR Studio, but not for IAR Embedded Workbench for AVR, where you only need to disable the DWEN bit.

 

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

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