STM32 Preschool Tutorial Part 3: Make the PC work, choose the software to develop

Publisher:innovator8Latest update time:2015-09-14 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1.  Software and version selection

Requirements: Support STLink2 or future Jlink  V7 debugging interface (because STM32-SK uses this interface), be able to find ways to remove software restrictions, preferably with Chinese version help and interface, preferably with pure software simulation

Choice: RealView  MDK  3.23RPC or IAR  EWARM  4.42A (wait and see version 5).

2.  RealView  MDK  3.23RPC (Chinese version) installation and restriction removal

Step 1: Execute the installation program to complete the basic installation, and finally choose to add virtual hardware to facilitate pure software debugging.

Step 2: Execute the software, click File-->Licence  Manager, copy the CID data to the CID of the cracker, other options are as shown below, and then click Generate.

Step 3: Copy the LIC0 data to the LIC box of the software and click Add  LIC. Note that after adding the serial number, the Licence  Manager will calculate the validity period corresponding to this number. If it expires, it will be displayed in red. You need to click Generate of the cracking software again and calculate another one and fill it in.

Step 4:  Copy the files (two DLLs) required by ST-LINKII-KEIL Driver to KeilARMBIN and replace the original files. Step 5: Open the TOOLS.INI file in the Keil installation directory, add the line TDRV7=BINST-LINKII-KEIL.dll("ST LinkII  Debugger")

under the [ARM], [ARMADS], and [KARM] projects  , and save the changes. Step 6: Open MDK, select ST LINKII  Debugger in the Debug option of the project options  , and select ST LINKII  Debugger in the Utilities option  . After completing the above steps, the relevant configuration of ST-LINKII is completed and it can be used as a debugger. Note: Currently, ST-LINKII does not support the Download and Erase commands in the Flash menu. The program is automatically loaded into the flash for debugging when using Start/Stop  Debug  Session. 3.  Installation and cracking of IAR  EWARM  4.42A Step 1: Start/Run…/CMD to display the DOS interface, execute iarid.exe>>ID.TXT to get the local ID code, copy this ID code, and then execute iarkg.exe  ID code>>Lic422A.TXT to get a set of registration codes. Step 2: Use EWARM-EV-WEB-442A.exe (30-day limited version, other versions cannot use the registration code in the first step), execute the installation program to complete the basic installation, and you need to add the registration code calculated in the first step during the process. You can cancel the time limit, but only one of the group is valid, and you need to experiment. 4.  Link the hardware debugging program RealView  MDK: Find a basic program for STM32-SK, preferably only about IO and different from the current board program, so that you can see the results on the board, click Project/open  project. For example, GPIO, TIMER (the other two routines are about serial ports, and you need to connect to the serial port to see the running results). Use "Open  Project" to open, and then set the linker in Option and the project in Utilities to "ST  LinkII  Debuger". Compile the program, and then use "Start/Stop  Debug  Session" to write the program. IAR  EWARM: Same as above, find a routine that meets the conditions. Open an eww project file, right-click and select Option, select "Third-Party Driver" in Debuger  , and add "$PROJ_DIR$..ddlSTM32Driver.dll" in "Third-Party  Driver". Use "Make" or "Rebuild  All" to compile the program, and click "Debug" to burn it into Flash. Use "go" in the debug bar and so on to run the program. Note: Since the current version of MDK is incompatible with the ST-LINK-II programmer I have, all subsequent work will use IAR.
























Keywords:STM32 Reference address:STM32 Preschool Tutorial Part 3: Make the PC work, choose the software to develop

Previous article:STM32 Preschool Tutorial 2: How to develop - Getting Started
Next article:STM32 Preschool Tutorial 4: Lay a solid foundation and build a template

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

stm32 clock initialization analysis
Previously, in system applications, the void SystemInit (void) function was used directly to initialize the system clock. The details of how to initialize the clock were never considered. However, the hardware clock suddenly failed to oscillate, so I considered using the system internal clock. The stm32 internal clock
[Microcontroller]
Installation and cracking of keil software (can be used for both STM32 and C51)
Teach you how to install and crack Keil software (this article takes Keil4 software as an example) Step 1: Run the mdk.exe software and keep clicking on the default You can modify the path here Step 2: After clicking next, this dialog box will appear. You can enter any number in the first name and email fields.
[Microcontroller]
Installation and cracking of keil software (can be used for both STM32 and C51)
STM32 memory allocation details
1. KEIL compiled data code RO-data RW-data ZI-data Flash actually stores data 2. Memory Segments bss segment, data segment, text segment, heap and stack. 2.1, bss segment The bss segment usually refers to a memory area used to store uninitialized global variables in a program; BSS is the abbreviation of Bloc
[Microcontroller]
STM32 memory allocation details
Configure serial port interrupt via stm32 cubemx
First select the serial port ① Configuration of the third item ② Item 3 ③Global interrupt of serial port ④Part of the code: voidHAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {     if(HAL_UART_Receive_IT(&huart1,a1,1)!=HAL_OK) //Judge whether the data transmitted from the computer is recei
[Microcontroller]
Configure serial port interrupt via stm32 cubemx
STM32 HAL library timed interrupts and encoding input
It takes a lot of time to watch videos on these basic things, and those who have some basic knowledge may not be very clear about the library when learning. I hope that the usage of the library I summarized can save everyone's time. void TIM3_Init(u16 arr,u16 psc) {       TIM3_Handler.Instance=TIM3; //General timer
[Microcontroller]
STM32 USB uses the chip's internal flash to simulate a USB flash drive
This time, I want to use the internal flash of STM32 to simulate a USB flash drive. The STM32 chip I use is STM32F103ZE, which has 512K internal flash. In this project, I plan to use the last 400K space to simulate a USB flash drive. This project is modified based on the previous project of using NAND or SD card to sim
[Microcontroller]
STM32 USB uses the chip's internal flash to simulate a USB flash drive
STM32's built-in SPI implements reading and writing of external FLASH (W25Q128)
Experimental function: Use the KEY1 button to control the writing of W25Q128, and use another button KEY0 to control the reading of W25Q128. Hardware circuit: Software Configuration: //The following is the initialization code of the SPI module, configured as host mode   //SPI port initialization //This is the in
[Microcontroller]
How to use STM32's TIM as a normal timer
Take TIM2 of stm32 as an example, configure it as a normal timer, and trigger an interrupt when the timing time is up. 1: Basic configuration of the timer  First declare a structure variable TIM_TimeBaseStructure for timer configuration. For details, please refer to the TIM library provided by STM32 TIM_TimeBaseStruct
[Microcontroller]
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号