2. Connect the DBGU serial port on the at91sam7s64 board to the PC
3. Open SAM-BA.exe and click "DBGU connection"
<1> Connect the ERASE [pin 55] of at91sam7s64 to a high level (must be maintained for more than 50ms), which will erase all contents in the flash and unlock all internal flash write protection locks.
Allows flash programming
<2> Connect the TST [pin 40] of at91sam7s64 to a high level for 20 seconds or more (during this period, the internal TST logic control unit of at91sam7s64 will detect whether the internal flash is locked.
If it is detected that it is not locked, the TST logic control unit will burn the RomBoot boot program into the internal flash at 0x100000, so that RomBoot will start executing after reset)
<3>Reset at91sam7s64 or power on again. When you can see the "RomBoot" data output from the DBGU port, the "DBGU connection" can be connected normally! :):
4. After entering the SAM-BA programming download environment, select at91sam7s64 and download the file, and then you can download the file to the flash of at91sam7s64.
5. After downloading the program, if you want to download it again, if you selected lock flash when downloading the program last time, you need to follow steps <1>~<3> to unlock the flash first.
Select lock flash, then follow the steps <2>~<3> to perform RomBoot recovery again. Only in this way can you use SAM-BA.exe to download again
Summary: This method only uses the DBGU serial port, which saves the trouble of H-Flasher+wiggler burning the program, but it takes more than 20 seconds of RomBoot recovery. It is appropriate to choose in practice!
Previous article:STM32F101CBT6---GPIO Exercise
Next article:STM Study Notes--STM32F10X Clock
- Popular Resources
- Popular amplifiers
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!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- 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
- I need help from a master who can use ADS software to make filters
- [Technical Tips] GigaDevice GD32VF103C-START Getting Started
- Beijing Excellence Communication is recruiting embedded developers with high salary!!!
- How to assign initial values to a continuous RAM range in C2000 chip
- TMS570 Learning 3-Internal Flash Programming
- First post by a newbie
- TIDA-00961 FAQ for GaN-based High Efficiency 1.6kW CrM Totem Pole PFC Reference Design
- What is 4G DTU and what are its specific functions?
- CadenceLIVE China 2022 China Online User Conference invites you to attend
- Super detailed summary of receiver sensitivity and equivalent noise bandwidth