Requirements: Support STLink2 or future Jlink
Choice: RealView
2.
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
Step 3: Copy the LIC0 data to the LIC box of the software and click Add
Step 4:
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.
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
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- VHDL design combinational circuit, modelsim timing simulation midway output is not dynamic
- 4 Working principle and advantages of switching BOB power supply
- MicroPython Newsletter Issue 11 (MicroPython 8th Anniversary)
- Please tell me why the 15V output of the circuit in the attached picture is connected with GND
- [N32L43X Review] 8. FreeRTOS Porting
- Award-winning survey - electronic engineers' component purchasing channels
- [RISC-V MCU CH32V103 Review] + Timer Test and System Summary
- Bluetooth Low Energy (BLE) peripheral mode (peripheral) - using BLE as a server
- The problem of the total distortion increasing after the signal passes through the op amp filter circuit
- FPGA implementation of the design of RU algorithm encoder (LDPC encoder)