Demonstration Kit User Guide
6-3
5183AZIGB12/07/06
5.  Go back to the Program tab, in the Flash section, browse to the location of the
input HEX file and select the filename: rz200_v1_0.hex. Press Program and ver-
ify that the process terminates successfully.
6.  Alternatively, fuse settings can be altered using JTAG ICE mkII. In this case,
the Serial program downloading (SPI) enabled; [SPIEN=0] fuse must be
checked.
6.2.3
How to re-program
the RCB MAC
address
The 64-bit IEEE MAC address associated with the RCB is stored in the internal
EEPROM of the ATmega1281 that is on the RCB at address 0 (LSB). If the MAC
address has been inadvertently erased, the following steps can be followed to repro-
gram it into the EEPROM. This procedure should not be attempted if the RCB has a
valid MAC address. The following steps can only be performed with the JTAGICE mkII
while AVRStudio is running in Debug mode. This operation cannot be performed with
the AVRISP mkII included in your Demonstration kit.
The following steps reprogram the MAC address and MUST be completed from start to
finish once the program memory has been loaded (step 4), otherwise the RCBs MAC
address will be overwritten with all FFs.
1.  Open AVR Studio.
2.  Connect the JTAGICE mkII to the RCB programming header located on the Dis-
play Board.
3.  From the File Menu, select Open File and open the file rz200_v1_0.hex from the
CDROM.
4.  In the Save AVR Studio Project File dialog box, select Save to create a project
file.
5.  In the Select Device and Debug Platform dialog box, select JTAGICE mkII as the
debug platform, ATmega1281 as the device, and then select Finish to start the
AVR Studio disassembler and load the program memory.
6.  Enter drop menu Debug -> JTAGICE mkII Options
7.  Select Debug tag
8.  In the General area, select the Preserve EEPROM contents when reprogram-
ming device box and hit OK.
9.  If the EEPROM Memory window is not already open: from the View tab, open
the active HEX files EEPROM contents by selecting EEPROM from the Memory
Window drop down list. The EEPROM memory window should contain all FFs.
10. Starting at location 0 (the upper most left corner of the window), enter the 16
byte MAC address printed on the back of the RCB PCB in reverse order.
Note:   The MAC address MUST be written in reverse order in 2 byte pairs, i.e., if the
MAC address is 00-04-25-FF-FF-17-01-52, the sequence written into the
EEPROM must be entered as 52-01-17-FF-FF-25-04-00 from location 0. The
MAC address will automatically be saved to the EEPROM with each keystroke.
11. From the Project tab, select Close Project. You will be prompted to close and
end the debug session, select OK.
Caution: In the following step, you must select No. Selecting Yes will cause the MAC
address you just entered to be to permanently saved into the demokitfirmware.hex file.
This will make the file unuseable for other RCBs.
12. You will then be prompted to save the changes to demokitfirmware.hex. Select
No.