Summary of STM32 program download methods ISP, JFLASH, and MDK

Publisher:温馨的家庭Latest update time:2018-12-12 Source: eefocusKeywords:stm32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. First look at the stm32 startup mode 

Three programming download methods for STM32


J-link can debug almost all arm chips, it is a good thing. Here are three ways to download programs for stm32:


1. J-Flash download (requires J-link)


2. MDK configuration download (requires J-link)


3. ISP download (serial port download, you need to use the officialhttp://www.segger.com/cms/jlink.html .



Open the run, first configure the cpu corresponding to the cpu of the development board,

 

 

 

Connect the development board and J-link to the computer, and then connect


 

The connection is successful as shown in the following figure:


 

Then select the hex file you want to download, open it with the shortcut key ctrl+O (or file/open), and select the file.


 

Then select Target/Auto to burn automatically. (Sometimes it is strange that it cannot be successful in one try. In this case, you need to burn again manually, Target/Erase chip-->Target/Erase sectors-->Target/Program && verify).


 

OK, the burning is successful.

-------------------------------------------------- --------------------------------------------------


2. MDK configuration download, that is, online debugging and downloading in MDK. First, make sure that the j-link driver has been successfully installed. The rest of the work is just to set up MDK.


 

In fact, you can also choose J-LINK/J-TRACE.



Click setting to start setting.



Click add and select cpu.


 

 

OK, you can debug and download online:


 

-------------------------------------------------- --------------------------------------------------


3.ISP download (serial port download)


(1) Download the software Flash_Loader_Demonstrator_V1.3_Setup.exe and click Next to install it. Note: The version is 1.3. I tried version 2.1 and it failed to connect successfully.


 

 


According to the prompts: Set the boot mode, set BOOT0=1, BOOT1=0, and then restart the system. Connect. No more words below, just look at the picture.

 

 

 

 

 

 

 

(2) Download using STMISP.EXE, which is an ISP application for STM32


 STMISP.rar   


Then without saying anything else, just post the pictures.


 

 

 




Keywords:stm32 Reference address:Summary of STM32 program download methods ISP, JFLASH, and MDK

Previous article:About STM32 ISP instructions
Next article:Debugging Mini2440 with IAR

Recommended ReadingLatest update time:2024-11-17 00:32

STM32 memory distribution exploration
I encountered a very strange problem when running ucos. After running for a period of time, it would inexplicably enter the hardfault function, causing the system to crash. Later, based on stack debugging, it was found that the functions called each time were different, which was very puzzling. Through the map file, i
[Microcontroller]
STM32 learning: keil measurement function running time
Set the operating frequency during Trace (that is, the current system clock, such as stm32f103, f107 is 72MHz, f407 is 168M, and f429 is 180M): 2. Enter the debugging state, set a breakpoint before a statement and execute to this point, then execute to another statement. The following Sec is the execution time
[Microcontroller]
STM32 drives 12bit AD TLC2543 (I/O analog mode)
/********************************************************************************************** * File Name: tlc2543.c * Copyright: * Module Name: TLC2543 Driver * cpu: stm32f103rct6 Main Frequency: 72M * Author: * Creation Date: 2009-10-13 * Function Summary: *----------------------------------------Modification Hist
[Microcontroller]
STM32 Getting Started
  1. Install the MDK environment and download the third-party software mcuisp of the program.        Turn the BOOT0 switch to VCC, automatically search the serial port, and start programming. If the program is downloaded successfully, the information in the red box below will be printed out. After the program is downl
[Microcontroller]
STM32 Getting Started
STM32 timer timing calculation
Assuming the system clock is 72Mhz, TIM1 is obtained from PCLK2 (72MHz), and TIM2-7 is obtained from PCLK1. The key is to set the clock prescaler and the value of the auto-reload register period./*An update event occurs every 1 second (entering the interrupt service routine). RCC->CFGR |= (uint32_t)RCC_CFGR_PPRE1_DIV2
[Microcontroller]
STM32 I2C hard usage
/* The operation object is 24C02 */ #include "STM32Lib\\stm32f10x.h" #include "hal.h" //#define AT24C01A //24C01A, I2C timing is the same as the later 24C02 #define AT24C01 //24C01, I2C timing is a little different from the normal one #define EEPROM_ADDR 0xA0 #define I2C_PAGESIZE 4 //24C01/01A page buffer is
[Microcontroller]
STM32 I2C hard usage
STM32 Debug 485 (sp3485) Technical Summary
1. First of all, I would like to explain that the STM32 chip I used this time is STM32F103RB, and the resource used is USART1 on the chip. 2. Below is my circuit connection diagram: Note: The circuit can be slightly modified to be better. Connect pull-down resistors to ground and pull-up resistors to 5V at B and A r
[Microcontroller]
STM32 Debug 485 (sp3485) Technical Summary
ARM Learning "Ten" - About STM32 RTC debugging
I have been debugging the RTC part of STM32 these two days. I originally planned to make a perpetual calendar, but now it seems that it cannot be realized for the time being. Why do I say this? Because RTC has very high requirements for crystal oscillators. It must be a 32768 crystal oscillator with 6p load capacitors.
[Microcontroller]
Popular Resources
Popular amplifiers
Recommended Content
Latest Microcontroller Articles
He Limin Column Microcontroller and Embedded Systems Bible

Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.

MoreSelected Circuit Diagrams
Change More Related Popular Components
MorePopular Articles
MoreDaily News
Guess you like

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号