- Important information
- New features
- Known problems
- Program corrections
- User guide corrections
- Miscellaneous
- Release history
Important information
-
USB driver installation instructions for Atmel JTAGICE mkII
The USB driver for Atmel JTAGICE mkII is NOT automatically installed during the product installation.
You must manually run the driver-atmel-installer-x86-7.0.1417.msi installer or the driver-atmel-installer-x64-7.0.1417.msi installer to install the driver. -
There is a limited amount of hardware breakpoints available on AVR JTAGICE mkII. If you are using the CLIB library, the debugger will set internal breakpoints on the exit label, and if terminal I/O is used, a breakpoint will also be set on the putchar/getchar label. One breakpoint will also be set if the C-SPY option Run to has been selected.
If you are using the DLIB library, the debugger will set a system breakpoint on the __DebugBreak label.
To use more breakpoints for other purposes during debugging you can deselect the C-SPY option Run to and the linker option With I/O emulation modules.
-
Supported AVR devices
The following AVR devices are supported by the IAR C-SPY driver for AVR JTAGICE mkII:- AT90CAN128, AT90CAN32, AT90CAN64, AT90PWM161, AT90PWM2, AT90PWM216, AT90PWM2B, AT90PWM3, AT90PWM316, AT90PWM3B, AT90PWM81, AT90SCR050, AT90SCR075, AT90SCR100, AT90SCR200, AT90SCR400, AT90USB1286, AT90USB1287, AT90USB162, AT90USB646, AT90USB647, AT90USB82.
- ATA5272, ATA5505, ATA5700M322, ATA5702M322, ATA5781, ATA5782, ATA5783, ATA5787, ATA5790, ATA5790N, ATA5795, ATA5830, ATA5831, ATA5832, ATA5833, ATA5835, ATA6285, ATA6286, ATA6289, ATA8210, ATA8510.
- ATmega128, ATmega1280, ATmega1281, ATmega1284, ATmega1284P, ATmega1284RFR2, ATmega128A, ATmega128RFA1, ATmega128RFR2, ATmega16, ATmega162, ATmega164, ATmega164A, ATmega164P, ATmega164PA, ATmega165, ATmega165P, ATmega165PA, ATmega168, ATmega168A, ATmega168P, ATmega168PA, ATmega168PB, ATmega169, ATmega169P, ATmega169PA, ATmega16A, ATmega16HVA, ATmega16HVA2, ATmega16HVB, ATmega16M1, ATmega16U2, ATmega16U4, ATmega2560, ATmega2561, ATmega2564RFR2, ATmega256RFR2, ATmega32, ATmega323, ATmega324, ATmega324A, ATmega324P, ATmega324PA, ATmega324PB, ATmega325, ATmega3250, ATmega3250A, ATmega3250P, ATmega3250PA, ATmega325A, ATmega325P, ATmega325PA, ATmega328, ATmega328P, ATmega328PB, ATmega329, ATmega3290, ATmega3290A, ATmega3290P, ATmega3290PA, ATmega329A, ATmega329P, ATmega329PA, ATmega32A, ATmega32C1, ATmega32HVB, ATmega32M1, ATmega32U2, ATmega32U4, ATmega32U6, ATmega406, ATmega48, ATmega48A, ATmega48P, ATmega48PA, ATmega48PB, ATmega64, ATmega640, ATmega644, ATmega644A, ATmega644P, ATmega644PA, ATmega644RFR2, ATmega645, ATmega6450, ATmega6450A, ATmega6450P, ATmega645A, ATmega645P, ATmega649, ATmega6490, ATmega6490A, ATmega6490P, ATmega649A, ATmega649P, ATmega64A, ATmega64C1, ATmega64HVE, ATmega64HVE2, ATmega64M1, ATmega64RFR2, ATmega88, ATmega88A, ATmega88P, ATmega88PA, ATmega88PB, ATmega8HVA, ATmega8U2.
- ATtiny13, ATtiny13A, ATtiny1634, ATtiny167, ATtiny2313, ATtiny2313A, ATtiny23U, ATtiny24, ATtiny24A, ATtiny25, ATtiny261, ATtiny261A, ATtiny4313, ATtiny43U, ATtiny44, ATtiny441, ATtiny44A, ATtiny45, ATtiny461, ATtiny461A, ATtiny48, ATtiny828, ATtiny84, ATtiny840, ATtiny841, ATtiny84A, ATtiny85, ATtiny861, ATtiny861A, ATtiny87, ATtiny88.
- ATxmega128A1, ATxmega128A1U, ATxmega128A3, ATxmega128A3U, ATxmega128A4U, ATxmega128B1, ATxmega128B3, ATxmega128C3, ATxmega128D3, ATxmega128D4, ATxmega16A4, ATxmega16A4U, ATxmega16C4, ATxmega16D4, ATxmega16E5, ATxmega192A3, ATxmega192A3U, ATxmega192C3, ATxmega192D3, ATxmega256A3, ATxmega256A3B, ATxmega256A3BU, ATxmega256A3U, ATxmega256C3, ATxmega256D3, ATxmega32A4, ATxmega32A4U, ATxmega32C3, ATxmega32C4, ATxmega32D3, ATxmega32D4, ATxmega32D4P, ATxmega32E5, ATxmega384C3, ATxmega384D3, ATxmega64A1, ATxmega64A1U, ATxmega64A3, ATxmega64A3U, ATxmega64A4U, ATxmega64B1, ATxmega64B3, ATxmega64C3, ATxmega64D3, ATxmega64D4, ATxmega8E5.
- M3000.
-
Due to the fact that it is not possible to show UCSRC in ATmega16, this register has been removed from the register window.
Upgrade information
- None
New features
- None
Known Problems
-
[EWAVR-792, EW22591] It is not possible to set software breakpoints, in the XMEGA A3/D3/256A3B Revision B devices.
This is due to the problem described by the "Writing EEPROM or Flash while reading any of them will not work" errata. -
[EWAVR-790, EW22589] When using an AVR JTAGICE mkII, C-Spy can sometime fail to connect to devices on a JTAG daisy chain. Should you experience this issue, please make sure to double check all connections between the mkII and the JTAG chain before contacting IAR support for further assistance.
-
[EWAVR-449, EW17336] The IDE will crash if the JTAG frequency is set too high for the JTAGICE mkII debugger.
Program Corrections
None
User guide corrections
IAR Embedded Workbench® C-SPY® Debugging Guide for AVR®, UCSAVR-6
- None
Miscellaneous
-
To debug a CPU using JTAG, the JTAG and OCD fuse bits must be enabled. Use the Fuse Handler dialog box available from the JTAGICE mkII menu, the AVR STK500 programmer or a similar program to check and program these bits.
-
The JTAGICE mkII firmware should be version 0x030B0310 or higher to ensure compatibility with the C-SPY debugger. Download the latest version of AVR Studio. AVR Studio will automatically detect and upgrade JTAGICE mkII when it makes the first contact with JTAGICE mkII.
-
Remember that --enhanced_core enables these instructions:
MOVW, MUL, MULS, MULSU, FMUL, FMULS, FMULSU, LPM Rd,Z, LPM Rd,Z+, ELPM Rd,Z, ELPM Rd,Z+ and SPM
Release history
7.20 - 2018-12-18
New features
- None
Program corrections
None
7.10.7 - Service Pack - 2018-07-09
New features
- None
Program corrections
- None
7.10.6 - Service Pack - 2018-03-22
New features
- None
Program corrections
- None
7.10.5 - Service Pack - 2018-01-18
New features
- None
Program corrections
- None
7.10.4 - Service Pack - 2017-11-28
New features
- None
Program corrections
- None
7.10.3 - Service Pack - 2017-10-24
New features
- None
Program corrections
-
[EWAVR-952] debugWIRE devices using the smallest bootloader area could not be debugged.
7.10.2 - Service Pack - 2017-06-19
New features
- None
Program corrections
- None
7.10 - 2017-05-19
New features
- None
Program corrections
- None
6.80.7 - Service Pack - 2016-12-20
New features
- None
Program corrections
- None
6.80.5 - Service Pack - 2016-09-29
New features
- None
Program corrections
EW26253: The command line debugger option --program_fuses_after_download can now handle the value 0x00.
6.80.3 - Service Pack - 2016-07-04
New features
- Improved support for ATmega328PB.
Program corrections
- None
6.80 - 2016-06-01
New features
- None
Program corrections
- None
6.70 - 2015-11-10
New features
- None
Program corrections
- None
6.60 - 2015-05-29
New features
- None
Program corrections
- None
6.50.2 - Service Pack - 2015-01-30
New features
- The C-SPY JTAGICEmkII driver now has a new indication for cases where a fuse bit has been updated in the fuse handler but not yet programmed to the device.
Program corrections
- None
6.50 - 2014-11-25
New features
- None
Program corrections
- None
6.40 - 2014-05-20
New features
-
Programming fuses
A new command line option--program_fuses_after_download
is introduced. With this option it is now possible to write fuses after downloading the application to the device.
Syntax
--program_fuses_after_download
{Fuse option | Value}
Parameters
{Fuse option | Value}
Fuse option
--lock_bits_value
--low_fuse_value
--high_fuse_value
--extended_fuse_value
--fuse_byte0_value
--fuse_byte1_value
--fuse_byte2_value
--fuse_byte4_value
--fuse_byte5_value
Value
0x00 - 0xFF
Example
--program_fuses_after_download --fuse_byte3_value=0x20
Program corrections
- None
6.30.3 - Service Pack - 2014-02-21
New features
- Improved shutdown stability for the JTAGICE mkII Driver.
Program corrections
- None
6.30 - 2013-12-13
New features
- None
Program corrections
- None
6.21.3 - Service Pack - 2013-10-08
New features
- None
Program corrections
- None
6.21 - 2013-05-23
New features
- None
Program corrections
EW23783: The ATxmega32A4 can be programmed now, even after the 7.* changes to the JTAGICE mkII firmware.
EW23731: It is now possible to program the ATtiny1634 device.
6.20.2 - Patch release - 2013-03-04
New features
- None
Program corrections
- None
6.20 - 2013-01-16
New features
- None
Program corrections
EW23565: DebugWire targets can be programmed now, even after the 7.1C changes to the JTAGICE mkII firmware.
EW23549: Missing bit definition have been added to these files: ioata5272.h, ioata5505.h, iom3250a.h, iom3290a.h, iom6450p.h, iom645p.h, iom6490p.h, and iotiny84a.h.
EW23547: The option Use UBROF reset vector works as intended now.
6.12.3 - Patch release - 2012-09-18
New features
- None
Program corrections
- None
6.12.2 - Patch release - 2012-09-13
New features
- None
Program corrections
- None
6.12 - 2012-06-20
New features
- None
Program corrections
EW23231: The EEPROM memory is no longer erased for each loaded image.
EW23207: The configuration data sent to jtagice mkII was not correct for ATmega88A, this has been corrected.
EW23206: The ATmega328 device is now correctly recognized.
EW23153: The configuration data sent to jtagice mkII was not correct for ATmega3290PA, this has been corrected.
EW22940: Support for the ATtiny87 has been added.
6.11.2 - Patch release - 2012-04-16
New features
- None
Program corrections
- None
6.11 - 2011-12-20
New features
- None
Program corrections
EW22888: The Flash Page size is now correct for the ATxmega128D4.
EW22845: The read mask for the devices AT90PWM2/3/2B/3B/216 has been corrected.
6.10.1 - Patch release - 2011-09-21
New features
- None
Program corrections
- None
6.10 - 2011-08-29
New features
- None
Program corrections
EW22326: The USB ID option can now handle strings beginning with a figure.
CSAVR-JTAGICEMKII 5.51.6 - Patch release - 2011-05-12
New features
- None
Program corrections
EW22426: The configuration data sent to jtagice mkII was not correct for AT90SCR100, this has been corrected.
CSAVR-JTAGICEMKII 5.51.5 - Patch release - 2011-04-19
New features
- None
Program corrections
- None
CSAVR-JTAGICEMKII 5.51.2 - Patch release - 2011-02-11
New features
- None
Program corrections
EW22234: Previous corrections of the problems EW21041, EW19998, and EW21595 were not entirely successful. These problems have been corrected once more.
EW22232: A problem has been corrected to make it possible to program the ATmega64M1 and ATmega64C1 devices.
CSAVR-JTAGICEMKII 5.51.1 - Patch release - 2010-12-21
New features
- None
Program corrections
- None
CSAVR-JTAGICEMKII 5.51 - 2010-11-11
New features
- None
Program corrections
EW21985: The fuse handler now shows the BODACT bits for these devices, ATxmega16D4, ATxmega192D3, ATxmega64D3, ATxmega128D3, ATxmega256D3, and ATxmega32D4.
EW21989: The memory description for these devices, ATmega164A, ATmega164P, and ATmega164PA, has been corrected.
CSAVR-JTAGICEMKII 5.50.2 - Patch release - 2010-06-28
New features
- None
Program corrections
EW21866: It is now possible to send the Stop command when the target is in Sleep mode.
EW21821: The address to RAMPZ is now correctly sent to the JTAGICEmkII for these devices: ATmega1284, ATmega1284p, ATxmega64A1, ATxmega64A3, ATxmega64D3, ATxmega128A3, ATxmega128D3, ATxmega192A3, ATxmega192D3, ATxmega256A3, ATxmega256A3B, and ATxmega256D3.
CSAVR-JTAGICEMKII 5.50.1 - Patch release - 2010-05-28
New features
- Added support for the ATmega16HVB device.
Program corrections
- None
CSAVR-JTAGICEMKII 5.50 - 2010-04-22
New features
- None
Program corrections
EW21596: The word achieved was misspelled as 'achived' in a debug log message.
EW21595: The fuse part in the file ATtiny88.xml is now correct.
CSAVR-JTAGICEMKII 5.40.3 - Patch release - 2010-03-19
New features
- None
Program corrections
- None
CSAVR-JTAGICEMKII 5.40.2 - Patch release - 2010-02-19
New features
- None
Program corrections
- None
CSAVR-JTAGICEMKII 5.40.1 - Patch release - 2010-02-08
New features
- None
Program corrections
- None
CSAVR-JTAGICEMKII 5.40 - 2009-12-17
New features
- The JTAGICE mkII driver can now be used on 64-bit versions of Windows Vista and Windows 7.
Program corrections
EW21155: When downloading, the flash is now erased before writing to the ATxmega devices. Even if the "Preserve EEPROM contents even if device is reprogrammed" option is enabled.
EW20967: The high part of the SP register was not displayed for ATtiny48 and ATtiny88.
CSAVR-JTAGICEMKII 5.30.5 - Patch release - 2009-09-15
New features
- None.
Program corrections
EW21313: Downloading EEPROM content now works as intended for the ATxmega devices.
V5.30 - 2009-05-27
New features
-
Support for the PDI debug interface has been added to the C-SPY driver for JTAGICE mkII.
Program corrections
-
EW21044: It is now possible to debug devices that has the JTAG interface disabled during runtime.
-
EW21041: The fuse parts in these files, ATmega32M1.xml and ATmega32C1.xml, are now correct.
-
EW20966: Objects crossing a flash page boundary are now handled correctly.
-
EW20957: The driver does no longer attempt to use more hardware breakpoints than those available.
-
EW20799: The memory information in the device configuration files is now correct for the ATmega1284P device.
V5.20 - 2009-01-28
-
EW20056: The tool tip feature was very slow on large data types. This has been corrected.
-
EW20756: The configuration data sent to jtagice mkII was not correct for ATmega324P, this has been corrected.
V5.12C2 - 2008-09-25
New Features
-
The C-SPY debugger for JTAGICE mkII now supports XMEGA AVR devices.
Program corrections
-
EW20473: Some operations, like verify, could result in an unresponsive JTAGICE MkII. This has been corrected.
-
EW20474: It was not possible to program the boot area for ATxmega devices. This has now been corrected.
v5.12C - 2008-09-03
-
EW20169: An incompatibility between the USB device driver provided with AVRStudio and EWAVR has been solved.
-
EW20252: All fetch breakpoints used software breakpoints. This has been corrected.
-
A low priority process that was running when the debugger was loaded caused the debugger to use all available CPU power. This task was trying to log data from the ODCR register. This log possibility will now be turned off by default.
v5.11B - 2008-08-01
-
EW20085: It was not possible to use the fuse handler. This has been corrected.
v5.11A - 2008-04-25
-
EW19998: The files ATmega32C1.xml and ATmega32M1.xml had some errors which resulted in fuse handler read failure.
v5.10A - 2008-02-06
Program corrections
-
EW19784: A problem related to downloading code with JTAGICE mkII has been corrected. The problem could be seen when one of the following devices was used: ATmega88P, ATmega168P, ATmega328P, AT90usb162, AT90usb82, AT90pwm216, AT90pwm316.
-
EW19290: ATmega165P was not supported.
-
EW19289: A busy wait loop, that consumed all available processor time, has been removed.
-
EW19209: The Enable software breakpoints option was available for ATmega128. This has now been corrected.
New features
-
Support has been added for the following new devices: ATtiny48, ATtiny88, ATtiny23U, ATtiny43U, ATtiny167, ATmega1284P, ATmega32C1, ATmega32M1, ATmega32U4, ATxmega128A1, ATxmega64A1.
v4.30F - 2007-11-14
Program corrections
New features
-
Support has been added for the following new devices: ATtiny48, ATtiny88, ATtiny23U, ATtiny43U, ATmega1284P.
V4.30C Patch release - 2007-07-06
- None.
V4.30A - 2007-06-07
Program corrections
-
EW18811: The fuse handler now works with the ATmega324P device.
-
EW18810: The fuse handler now works with the USB1287 device.
New features
-
Support has been added for the following Atmel devices: AT90USB82, AT90USB162, AT90USB646, AT90USB646, AT90USB1286, AT90PWM216, AT90PWM316, ATmega48P, ATmega88P, ATmega168P, ATmega328P, ATmega644P, ATtiny84, ATtiny261, ATtiny461, ATtiny861.
V4.21A - 2006-12-15
Program corrections
- None.
New features
Support has been added for the following new Atmel devices:
- AT90PWM2B, AT90PWM3B
- ATmega8HVA, ATmega16HVA
- ATmega169P, AT mega325P, ATmega3250P, ATmega329P, ATmega3290P
V4.20D - 2006-09-29 (patch release)
Program corrections
- None.
New features
- Support has been added for the devices AT90PWM2B and AT90PWM3B.
V4.20B - 2006-06-19 (patch release)
Program corrections
-
EW18173:The JTAGICE mkII debugger now works also with the ATmega1281 device.
New features
- None.
V4.20A - 2006-06-13 (patch release)
Program corrections
- None.
New features
-
Fuse Handler
IAR Embedded Workbench for Atmel AVR now provides the possibility to program AVR on-chip fuse and lock bits via the Atmel AVR JTAGICE mkII interface.
V4.12A - 2005-12-05
Program corrections
-
EW17401: It is now possible to disable the debugWire interface when ending a debugWire session using USB.
-
EW17109: The C-SPY JTAGICE mkII debugger can now download code also into the address range 0x20000-0x3FFFF of the target flash memory
-
EW17100: Single-stepping in the C-SPY JTAGICE-mkII debugger no longer overwrites the contents of the PORTA register of the ATmega2560.
New features
- None.
V4.11B - 2005-09-02
Program corrections
-
EW17109: The C-SPY JTAGICE mkII debugger was not able to download code into the address range 0x20000-0x3FFFF of the target flash.
-
EW17100: Single-stepping in the C-SPY JTAGICE-mkII debugger no longer overwrite contents of the PORTA register of the ATmega2560.
New features
- The C-SPY JTAGICE mkII debugger now supports ATmega644.
V4.11A - 2005-06-30
Program corrections
-
EW16953: Single-stepping in the C-SPY JTAGICE-mkII debugger no longer overwrite contents of the PORTA register of the ATmega2561.
New features
-
Communication via USB is now supported for the JTAGICE mkII debugger. Select Communication>USB on the JTAGICE mkII options page.
-
It is now possible to disable system breakpoints on the exit, getchar, and putchar labels when the CLIB library is used.
V4.10M - 2005-04-20
Program corrections
-
The IAR JTAGICE-mkII debugger did not work together with the AVR JTAGICE-mkII emulator if the firmware had been updated with AVR Studio 4.11 Service Pack 2.
New features
-
It is now possible to enable and disable debugWIRE via the SPI interface.
-
The JTAGICE-mkII menu now has a new command Ending Session Disables debugWire.
-
The IAR JTAGICE-mkII debugger now also supports ATmega645, ATmega6450, ATmega649, ATmega6490, and ATtiny24.
V4.10B - 2005-03-07
Program corrections
-
EW16532: The events when the target is entering or leaving sleep mode are now reported in the log window instead of in a dialog box.
-
The IAR C-SPY driver for AVR JTAGICE mkII now works also on devices with the debugWIRE interface.
New features
-
The IAR C-SPY driver for AVR JTAGICE mkII now works also on devices with the debugWIRE interface. Data breakpoints are not available on these devices.
V4.10A - 2005-02-15
- Initial release