STM32 USB DFU firmware upgrade must read

Publisher:AngelicWhisperLatest update time:2016-12-20 Source: eefocusKeywords:STM32  USB  DFU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Upgrade code engineering instructions

After the project is created, the following steps need to be performed:

1. First, click on the compiler's "Target Option" STM32 USB DFU firmware upgrade must read - ziye334 - ziye334's blog, then select the Target option, set IROM1 under on-chip in the "Read/Only Memory Areas" field, and modify the download start address and size. Here we use the address 0x0800500:

   STM32 USB DFU firmware upgrade must read - ziye334 - ziye334's blog

 

2. Next, we need to remap the interrupt vector table to the code we started with at the beginning of the program, that is, add the following sentence at the beginning of the main() function: NVIC_SetVectorTable(0x08005000, 0x0); 

 

 

DFU File Manager Instructions

Next, we need to create the upgrade file. Click the DFU File Manager software, and the following interface will appear:

STM32 USB DFU firmware upgrade must read - ziye334 - ziye334's blog

  

We select the first one: I want to GENERATE a DFU file from S19, Hex Or Bin”, then the following popup will appear:

STM32 USB DFU firmware upgrade must read - ziye334 - ziye334's blog

 

  

We modify VID to 0483, PID to DF11, and Version to 0100 or 0200, which is the same as the USB DFU project settings. Click "S19 or Hex..." to select the hex file to be generated by the project code upgrade. In the edit box to the right of "Target" in the "Injection" field, set the number. For example, in our USB DFU project, we set the Internal flash number to 00, so set it to 0 here, and then click "General" to save it as a dfu file.

STM32 USB DFU firmware upgrade must read - ziye334 - ziye334's blog

 

 

 

DfuSe Demostration User Manual

After downloading the USB DFU program to the development board, press the button to enter the upgrade mode. Then the DfuSe Demostration interface will appear as follows:

STM32 USB DFU firmware upgrade must read - ziye334 - ziye334's blog

  

In the upper left corner of the software, "STM32 Device in DFU Mode" will appear. Then, in the upper right corner of the DFU Mode field, the PID and VID of the USB device will be displayed. From the figure, we can see that the VID is 0483 and the PID is DF11. These two VIDs are fixed and must be 0483. The PID can be customized. If you want to use the USB DFU function, you must set these two numbers. In the "Action Select" field, our storage device will appear, which will display: number, name and number of available sectors. If we use Internal Flash, the above interface will appear. Next, we need to click the "choose" button in the "Upgrade or Verify Action" field, select the .dfu file made before, and check the "Verify after downl" option, and then click the "upgrade" button. If successful, the words "Target00: Verify successful" will appear.


STM32 USB DFU firmware upgrade must read - ziye334 - ziye334's blog


Keywords:STM32  USB  DFU Reference address:STM32 USB DFU firmware upgrade must read

Previous article:STM32 USB DFU device firmware upgrade project explanation
Next article:STM32 Internal Flash DFU chip internal flash code upgrade

Recommended ReadingLatest update time:2024-11-16 21:02

STM32 memory map
I. Overview   STM32 memory map is an important part of STM32 architecture and is indispensable. 2. STM32 memory map 1. Memory Map - Excerpted from "CM3 Authoritative Guide" 2. Memory map - from "STM32F103x Brief Chip Manual"
[Microcontroller]
STM32 memory map
USB interface design based on Blackfin532 and Netchip2272
USB (Universial Serial Bus) is a universal bus system. It has become one of the most widely used PC peripheral expansion interfaces due to its advantages such as hot plug support, fast data transmission, reliable performance and low price. It is an ideal interface for data transmission between electronic systems and
[Embedded]
The meaning of several interrupt flags defined in the STM32 USATR firmware library
There are the following macro definitions in stm32f10x_usart.h: #define USART_IT_PE ((uint16_t)0x0028)   #define USART_IT_TXE ((uint16_t)0x0727) #define USART_IT_TC ((uint16_t)0x0626) #define USART_IT_RXNE ((uint16_t)0x0525) #define USART_IT_IDLE ((uint16_t)0x0424) #define USART_IT_LBD ((uint16_t)0x0846) #define USART
[Microcontroller]
STM32 SPI_FLASH
Introduction to SPI:  SPI protocol (Serial Peripheral Interface), also known as serial peripheral interface, is a high-speed full-duplex communication bus proposed by Motorola. It is widely used in occasions where ADC, LEC and other devices communicate with MCU. SPI signal line:  The SPI bus contains 4 buses, namely S
[Microcontroller]
STM32 drives MAX6675 to read temperature
MAX6675 is a K-type thermocouple conversion chip with cold-end compensation, SO-8 package, 12-bit accuracy, 0.25°C resolution, and a maximum measured temperature of 1023.75°C, which is 1024/(2 to the 12th power) = 0.25°C.                                            VCC-GND connects to 3~5.5V voltage; T+, T- are c
[Microcontroller]
STM32 drives MAX6675 to read temperature
stm32 - ordinary serial port (receive query and interrupt combined)
Serial port experiment 1. Before doing any experiment, import the target file into the library file, then import the header file in the main function, and write the path in FWLIB. Of course, the serial port is no exception.                                                                      2. After importing the fi
[Microcontroller]
[STM32 motor vector control] Record 5 - FOC principle
FOC control algorithm: What FOC controls is actually the direction of the electromagnetic field of the motor. The rotor torque of the rotor is proportional to the vector product of the stator magnetic field vector and the rotor magnetic field vector. From the relationship between the vectors, it can be seen that if th
[Microcontroller]
[STM32 motor vector control] Record 5 - FOC principle
Analysis of the Impact of USB on Test and Measurement Users
In late 2002, the USBTMC (Universal Serial Bus Test & Measurement Class) specification was introduced. As USBTMC instruments come to market, many may wonder how this new protocol will affect the test and measurement industry. Manufacturers now have the option of including USB in their instruments. Likewise, test eng
[Test Measurement]
Analysis of the Impact of USB on Test and Measurement Users
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号