1. STK500 Download
Supported chips: Supports the full range of AVR chips. And supports future AVR new chips. In the actual production process, in many cases, the JTAG circuit is not retained because the JTAG circuit occupies the IO port, and not all chips support JTAG download, so it is important to use STK500 to download.
Operation method: Open AVR Studio software and follow the steps below.
The difference between Connect and Auto Connect is that the device name and connection port will be prompted every time. Auto Connect will automatically use the last setting to improve operation efficiency. When using Connect, the following interface will pop up:
Port is the hardware connection port. If you use the downloader on this site, the USB device will be simulated to com3 by default. If you are not sure, just select Auto. If you are not connected to STK500, JTAG, mkII and other devices, you can use Disconnected Mode to enter the viewing operation interface.
If you have connected as shown below, you can press Connect to connect: (Note: Connect JTAG when downloading with JTAG, and connect ISP when downloading with ISP. If the ordinary programmer is connected incorrectly, the chip may be burned or the program may be lost. The programmer of this war has a very strong protection function and there will be no such danger.)
After the connection is successful, enter the following interface:
Memory lock bits (from top to bottom, one to one) | Protection Type | ||
lb mode | lb2 | lb1 | |
1 | 1 | 1 | Memory protection feature is not enabled |
2 | 1 | 0 | In parallel and SPI/JTAG serial programming modes further programming of flash and EEPROM is inhibited and the fuse bits are locked. (1) |
3 | 0 | 0 | Further programming and verification of flash and eeprom are prohibited in parallel and spi/jtag serial programming modes, and the lock bits and fuse bits are locked (1) |
blb0 mode | blbo2 | blb01 | |
1 | 1 | 1 | spm and lpm have no restrictions on access to application areas |
2 | 1 | 0 | Do not allow spm to write to the application area |
3 | 0 | 0 | The spm instruction is not allowed to write to the application area, and the lpm instruction running in the boot loader area is not allowed to read data from the application area. If the interrupt vector is located in the boot loader area, then the interrupt is disabled when executing the application area code. |
4 | 0 | 1 | The lpm instruction executed in the boot loader area is not allowed to read data from the application area. If the interrupt vector is located in the boot loader area, then the interrupt is disabled when executing the application area code. |
blb1 mode | blb12 | blb11 | |
1 | 1 | 1 | Allow spm/lpm instructions to access the boot loader area |
2 | 1 | 0 | Do not allow spm instructions to write to the boot loader area |
3 | 0 | 0 | The spm instruction is not allowed to write to the boot loader area, and the lpm instruction running in the application area is not allowed to read data from the boot loader area. If the interrupt vector is located in the application area, then the interrupt is disabled when executing the boot loader area code. |
4 | 0 | 1 | The lpm instruction executed in the application area is not allowed to read data from the boot loader area. If the interrupt vector is located in the application area, the interrupt is disabled when executing the boot loader area code. |
notes: 1. Program the fuse bit before programming the lock bit. 2. “1” means not programmed, “0” means programmed
2: Download using JTAG emulator
The download method is almost the same as using STK500. In the above introduction, instead of selecting STK500 as the device, select JTAG ICE to enter. Supported chips: Only chips with JTAG interface are supported. According to the description of the official document, the list of supported chips is: ATmega128, ATmega64, ATmega32, ATmega16, ATmega162, ATmega165, ATmega169, ATmega323 It can be seen that JTAG download is very limited. In addition, due to the different communication protocols, the speed of JTAG download, especially the instantaneous response speed, does not feel as fast as STK500. (But if a large amount of data is transmitted, the speed feels about the same).
Previous article:AVRstudio Quick Start
Next article:AVR jtag online simulation debugging quick start
Recommended ReadingLatest update time:2024-11-16 20:45
- Popular Resources
- Popular amplifiers
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Metronom Real-Time Operating System RTOS for AVR microcontrollers
- Learn C language for AVR microcontrollers easily (with video tutorial) (Yan Yu, Li Jia, Qin Wenhai)
- ATmega16 MCU C language programming classic example (Chen Zhongping)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Building ESP32-C3 development environment based on window Visual Studio Code: ESP-IDF
- [AT-START-F403A Review] + Unsuccessful W25Q128 Read and Write
- Cadence Allegro beginners must read
- EEWORLD University ---- Introduction to CC2650MODAPluetooth? Low-energy RF module
- After the microcontroller is powered on, it runs a display program and encounters a very strange problem.
- A brief discussion on LTE technology and practical application solutions
- What is the drilling process in the Siliton ceramic substrate PCB?
- SD/TF card usage issues
- Download address of Arteli technical resources
- MSP430F249 external interrupt P1.3 port