Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

STM32-based USB online upgrade method and system

A device and host technology, applied in the field of USB online upgrade method and system, can solve the problems of low production efficiency, inconvenient update program, inconvenient, etc., and achieve the effects of improving production efficiency, convenient after-sales maintenance, and easy circuit

Inactive Publication Date: 2017-02-15
恒鸿达科技有限公司
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, STM32F103RCT6 can only support ICP (in-circuit programming) download (jtag mode download) and ISP (in-system programming) download mode (serial port ISP download mode), which is extremely inconvenient in the case of mass production and maintenance. Production efficiency is not high
At the same time, because the ICP download program needs to use the JTAG (joint test) tool, this is quite inconvenient for after-sales or user update programs; and the ISP download program needs to use the serial port, because many new personal computers do not have a serial port function. , so the update program is quite inconvenient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • STM32-based USB online upgrade method and system
  • STM32-based USB online upgrade method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Please refer to figure 1 Shown, a preferred embodiment of the USB online upgrading method of a kind of STM32 of the present invention, described method comprises the following steps:

[0048] Step 1. Use the pre-burning tool to burn the HID boot program into the program loading area of ​​the chip; in the actual implementation, the boot program needs to be burned to the 0x08000000 area of ​​STM32F103RCT6, because the 0x08000000 area is the program loading area when the flash starts.

[0049] Step 2, after the system starts, the boot program initializes the USB device as a HID high-speed device; the step 2 is specifically:

[0050] After the integrated circuit is successfully powered on, start the system (the program starts from the address of 0x08000000 area), run the boot program, initialize the clock, and judge whether to enter the update program mode (ISP mode), if so, initialize the USB device as a HID high-speed device, and go to step 3;

[0051] If not, then judg...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an STM32-based USB online upgrade method. A boot program of an HID is burnt into a program loading area of a chip by using a pre-burning tool; the boot program initializes USB equipment into HID high-speed equipment; the USB equipment is connected with a USB host; the USB host enumerates the USB equipment; the USB equipment receives an APP program data packet from the USB host and stores the APP program data packet into a data backup area of the USB equipment; and the USB equipment is restarted and the APP program data packet is copied into an APP data area from the data backup area and jumps to an APP application area to run an APP program. The STM32-based USB online upgrade method has the advantages that application updating and maintenance by using a USB interface of an integrated circuit can be achieved through the method, the production efficiency of an STM32 can be improved, the production cost can be reduced and the upgrade success rate can be improved.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and system for USB online upgrading of STM32. Background technique [0002] At present, STM32F103RCT6 can only support ICP (in-circuit programming) download (jtag mode download) and ISP (in-system programming) download mode (serial port ISP download mode), which is extremely inconvenient in the case of mass production and maintenance. Production Not very efficient either. At the same time, because the ICP download program needs to use the JTAG (joint test) tool, this is quite inconvenient for after-sales or user update programs; and the ISP download program needs to use the serial port, because many new personal computers do not have a serial port function. , so the update program is also quite inconvenient. Contents of the invention [0003] One of the technical problems to be solved by the present invention is to provide an STM32 USB online upgrade method, which can imple...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/445
CPCG06F8/65
Inventor 胡崟春林智铃
Owner 恒鸿达科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products