This section is a guide verifying the tool and project configuration setup by compiling
the empty project and writing it to the ATtiny817.
Todo: Verify the tool and project configuration setup done in the previous
sections.
- 1.Clicking the Start Without Debugging
button in the Debug menu, as shown in the figure below, will compile and
write the project to the specified target MCU using the configured tool.
Figure 4. Start Without
Debugging
- 2.When Microchip Studio builds the
project (automatically done when pressing Start Without Debugging),
several generated output files will show in the Solution Explorer window.
The following output files are generated:
- a.EEP file: EEPROM content
written to the device.
- b.ELF file: Contains
everything written to the device, including program, EEPROM, and
fuses.
- c.hex file: Flash content
written to the device.
- d.LSS file: Disassembled
ELF file.
- e.MAP file: Linker info,
what did the linker do, decisions about where to put things.
- f.SREC file: Same as hex
but in Motorola format.
Info: If there is
new firmware available for the selected tool, the
Firmware Upgrade dialog
will appear, as depicted in
Figure 5. Click
the
Upgrade button to start the firmware upgrade.
Figure 5. Firmware Upgrade
Dialog
Depending on the state of the connected tool and the actual firmware upgrade,
the update may fail on the first attempt. This failure is ordinary. Disconnecting
and reconnecting the kit before clicking
Upgrade again may resolve the
problem. After the completed update, the dialog should say 'EDBG Firmware
Successfully Upgraded'.
Close the dialog box and make a new attempt at
programming the kit by clicking the
Start Without Debugging button
again.
Result: The
following has been verified by compiling the empty project and writing it to the
ATtiny817:
- The project is configured for
the correct MCU
- The correct tool has been
selected
- The tool's firmware is
up-to-date
Under View > Available Tools,
you can see a list of available or recently used Tools. Here you can specifically
ask Microchip Studio to upgrade the firmware for a tool.
Figure 6. Microchip Studio Available Tools (on view
menu)