Tips for Using Atmel Studio 7

Quietly, it has been upgraded again.

The latest version of Atmel Studio is 7.0.2389, feel free to upgrade.

https://www.microchip.com/mplab/avr-support/atmel-studio-7

Tips for Using Atmel Studio 7

Here, I will discuss AS7’s perfect support for PICKIT 4 and how to package ELF files.

Tips for Using Atmel Studio 7

====================

When creating a new AVR series project in the latest version of AS7, you will find that it now supports the low-cost development tool PICKIT 4. This is great news as it solves many developers’ issues.

Tips for Using Atmel Studio 7

Although PICKIT 4 is low-cost, it has a rich debugging interface, and its features are continuously being upgraded and improved.

It supports downloading and debugging for PIC, AVR, and SAM (ARM) series hardware interfaces.

Tips for Using Atmel Studio 7

It also provides a practical data stream interface.

Tips for Using Atmel Studio 7

It can be combined with Data Visualizer to view data streams in real-time.

Tips for Using Atmel Studio 7

You can select PICKIT 4 to enter online debugging mode.

Tips for Using Atmel Studio 7

The actual debugging functionality is similar to atmel-ICE and power debugger, allowing developers seamless integration.

Tips for Using Atmel Studio 7

Of course, you can also use the command line in Atmel Studio to achieve unattended downloading and programming processes.

Tips for Using Atmel Studio 7

====================

Previously, in the article “At the Last Moment, How Can Programmers Correctly Convert Project Code into Production Files?” it was mentioned that converting project code into production files in AS7 can be confusing for some friends. Here, I will go over it in detail again:

First, set the Tool to Simulator, then click Apply. You can change the Fuses as needed, and after making the changes, click Program.

Tips for Using Atmel Studio 7

Open the Lock bits option, select as needed, and click Program. Here, select “Read/Write Lock”.

Tips for Using Atmel Studio 7

Open the Production file option, in the lower part of the dialog, select Flash, EEPROM, Fuses, Lock bits, etc. as needed, then click Save to package the ELF file.

Tips for Using Atmel Studio 7

Select the Tool as Hardware Tool for programming or verification. Here, select the latest supported PICKIT 4 for testing.

Tips for Using Atmel Studio 7

Open the Production file option, select the ELF file generated earlier that contains Fuses and Lock bits information, and click Program. Once it prompts OK, the download is complete.

Tips for Using Atmel Studio 7

The generated ELF file contains read/write lock functionality; let’s try to read it and see the lock prompt.

Tips for Using Atmel Studio 7

Next, let’s check the Fuses content, which also prompts that it is locked.

Tips for Using Atmel Studio 7

As for the Lock bits? It still prompts that it cannot be read.

Tips for Using Atmel Studio 7

After checking the program functionality on the board, everything is normal, indicating that the ELF file packaging is complete.

If you want to unlock the Lock bits, you can use the Erase Chip command to erase it, but this will also clear the program.

Tips for Using Atmel Studio 7

Related Articles: “At the Last Moment, How Can Programmers Correctly Convert Project Code into Production Files?”

OK, this concludes this session..

Welcome to discuss.

Leave a Comment