We now turn to the preparation of the workplace. Conventionally, we divide preparation of this workplace into 2 parts.
Part 1 is the installation of the necessary software on the computer.
Part 2 is the preparation of hardware part for programming microcontrollers.
1 First you need to install software on your computer.
1.1 First of all, install the official version of Atmel Studio
https://www.microchip.com/mplab/avr-support/atmel-studio-7. Atmel Studio 7 is currently available.
1.2 After installing Atmel Studio 7, we need to install the latest Python programming language
https://www.python.org/downloads. Currently version 3.7.3 is available. Python is a cross-platform and open source programming language. Installing Python is only required to run the working script on the computer. The script will flash the Attiny microcontroller using our .hex file. We will get this .hex file when compiling our program using by Atmel Studio 7. Programming in Python in this case is not required.
1.3 Download Project updipy
https://github.com/mraardvark/pyupdi. On this page at the top (above the middle of the page) on the right will be the tab "Clone or Download". Click on it. The tab will open and there will be a link "Download ZIP". Click on it and download the project to your computer. We recommend unpacking the project in the directory C: \ Users \ User. This is done for simplicity. Since the command line defaults to this particular directory. All project files and folders should be in the same directory. Pyupdi is launched via the pyupdi.py script in computer’s command line. Of course, you can create an environment variable in order to set up a script path directory there. For pyupdi.py, you will also need to install additional modules: intelhex, pylint, pyserial. You can install these modules via the command line of the computer using by the command “
pip install pylint” for the pylint module. A similar command will be required to install other modules.
2 Comments
Default condition of PA0 will be UPDI. right?
How to enable Reset pin,If we want a external reset button.
It’s right. In the near
I will try to resolve this issue. I’ll write how to solve it.