Recently, I participated in the driver debugging of the mobile payment project team, which mainly involved the bootloader download program for the STM32 microcontroller. The following is a summary of the problems found and solved.
1. For the use of FLASH_LOAD software, when the software cannot find the MCU, you need to check whether there is a software update on the st official website, because it is very likely that this MCU is a new version and there is no information about the chip in the previous software.
2. For the use of MCU and MCU download through ISP, you need to first confirm what the bootload version of the downloaded MCU is, because when the version is updated, some instructions will also be updated accordingly. For example, the two versions of version 2.X and version3.X have different instructions and representation formats for erasing internal flash. For version 2.X, the erase instruction is 0x43, the erase page address is represented by 1 byte, and the instruction to erase the entire space is 0xFF, 0x00. For version3.X, the erase instruction is 0x44, the erase page address is represented by 2 bytes, and the instruction to erase the entire space is 0xFF, 0xFF.
3. Before downloading via ISP, the upper end needs to send a 0x7F instruction to the MCU being downloaded. The MCU being downloaded will send 0x79 to the upper end, and a handshake protocol is successful. If 7F is not sent to the MCU being downloaded, but the write memory instruction is sent directly, the baud rate between the two will be different and normal communication will not be possible. Therefore, a handshake protocol must be performed before ISP downloading.
4. An empty STM32 itself does not have write or read protection, so there is no need to send a read and write protection instruction before downloading. Read and write commands for memory are also not required.
5. The correct ISP burning process should be as follows:
send 0x7F—>wait for 0x79—>send read bootload version command—>get bootload version—>send erase command according to bootload version—>send write memory instruction—>send FLASH address—>send bin data.
Previous article:stm32 bootloader serial port upgrade program framework
Next article:How to use the BootLoader and APP program of STM32F4
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- FPGA Introduction Series 4--Assignment Statement
- An almost brand new Tencent OS Tiny IoT development board is released
- Chip Manufacturing 4-Semiconductor Cleaning
- STM32 uart configuration
- What does this runtime warning mean and how to deal with it?
- ESP32 configures WIFI via Bluetooth
- LT5400AIMS8E-4#PBF If you need help with replacement, or provide this material directly, thank you!
- MBUS front-end protection
- KiCad Simplified Chinese Manual
- Automotive electronics technology - hardware, software, system integration and project management