STM32 serial port download method-USART BootLoader

Publisher:WiseThinkerLatest update time:2018-08-13 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

When playing with STM32, J-LINK emulator is good, but J-Link is expensive. Fortunately, STM32 has its own bootloader, which can download programs through the serial port. I think the serial port download method is simple and cheap, and it can be done with a USB-TTL converter.

  1. First, on the minimum system board that can work properly, adjust the 232 circuit on the development board to ensure that it is available, that is, it can communicate with the PC without obstacles. Then load and download the compiled HEX file. Here STM32 recognizes hex files, which is better than the ARM of the LM3S series. First, download the host computer software Flash_Loader_Demonstrator_V2.1.0_Setup serial port download from the Internet, or go to the ST official website to download it.

  2. Install the software and carry out relevant design

  

  Confirm that your serial port settings are OK and make sure the serial port numbers correspond.

3. Connect to download

  Click Next. Note that when you click Next, a dialog box may pop up:

Check the two Boot pins, which should be Boot0=1; Boot1=0 (grounded). The setting is complete, and you can power on the MCU again.

Continue toNext.

Connection OK, Next.

This step will automatically select the device, then NEXT.

Select your HEX file in Download from file, Next.

Download process completed.


Keywords:STM32 Reference address:STM32 serial port download method-USART BootLoader

Previous article:Stm32F407ZGT6 serial communication USART3
Next article:How to download programs using the STM32 serial port (USB serial port)

Recommended ReadingLatest update time:2024-11-16 16:46

About the problem of STM32 serial port inexplicably entering interruption
The stm32 serial port printf output always enters the interrupt entry address when executed at full speed. If the interrupt function is blocked, it will display execution B when executed at full speed , indicating that the interrupt entry address cannot be found, and then the interrupt function is turned on, and it di
[Microcontroller]
How to feed the dog during stm32 hibernation and hibernation
Independent watchdog (IWDG) and low power mode are often used in STM32 development. The watchdog is to detect and solve faults caused by software errors, and the low power mode is to enter sleep mode to save power when the CPU does not need to continue running. The clock of the independent watchdog is provided by an i
[Microcontroller]
STM32 system interrupt processing
Click (here) to collapse or expand /******************************************************************************* * Function Name : SysTickHandler * Description : This function handles SysTick Handler. * Input : None * Output : None * Return : None ***************************************************
[Microcontroller]
STM32 system interrupt processing
Selection of stm32 chip startup file type
First, look at the startup file in the latest STM32 firmware library 3.5. As shown in the figure:  The corresponding relationship is as follows: 
[Microcontroller]
STM32 NVIC
Understanding of NVIC (Nested Vectored Interrupt Control) in STM32 (Cortex-M3) 1. The concept of priority in STM32 (Cortex-M3)       There are two priority concepts in STM32 (Cortex-M3): preemptive priority and response priority. The response priority is also called "sub-priority" or "sub-priority". Each interrupt s
[Microcontroller]
STM32ADC single conversion DMA read
      The DMA reading method is very suitable for high-frequency ADC sampling signals.      The DMA reading method of ADC is actually similar to the interrupt reading method in the previous article, and the initialization code is even more similar. The initialization code is as follows: static void ADC_GPIO_Config(voi
[Microcontroller]
The difference between UART and USART in microcontroller serial communication
 UART and USART are both serial port communications on the microcontroller. The differences between them are as follows: First of all, let’s look at the name: UART: universal asynchronous receiver and transmitter USART: universal synchronous asynchronous receiver and transmitter universal synchronous / asynchron
[Microcontroller]
Hardware circuit design of digital PDA system based on STM32 processor
    The digital PDA system consists of two parts: hardware circuit and software system. The hardware circuit consists of PDA peripheral circuit controlled by low-power ARM microcontroller STM32ZET6, and the software system consists of hardware driver, μC/OS-Ⅱ real-time operating system, FATFS file system, GUI and othe
[Microcontroller]
Hardware circuit design of digital PDA system based on STM32 processor
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号