The first step is to compile the program and check the compile output window. If there are no errors or warnings, click the debug button.
The second step is to set the pin port to be viewed and click Setup.
Step 3. Click Insert
Step 4. Enter the pin you want to view. For example, for GPIOA_Pin_0, enter PORTA.0. Note that there is a decimal point after A, and all letters are uppercase, not lowercase.
\
At this point an error will occur and the software cannot recognize the port pins we set
Click the button shown in the figure to set up the project
Click the Debug tab, go to the Debug Settings interface, and modify the text inside
Modify the text to the one shown in the figure, where the two boxes need to be changed according to the actual microcontroller model used
After the settings are completed, click OK to re-set the port pins to be viewed, click the blank part, and after the settings are completed, click Close
Return to the debugging interface, click Run at full speed, click auto in the figure to use the automatic signal capture function, and you can see the signal waveform.
////////////////////////////////////////////////////////////////////////////////////////
stm32 MDK5 software simulation to view io port output - simonlin - Blog Park
https://www.cnblogs.com/simonlin/p/5036437.html
SoftwareMDK5
stm32 pack
Open MDK and add a project
1. First, find the Project Options option, and select Use Simulator in Debug, that is, select software simulation.
Then add the IO you want to observe and analyze in the Setup option of Logic Analyzer, such as PORTA.0. After starting the simulation, you will see the waveform in the logic analysis window. You can see it by adjusting the In or Out of Zoom.
①Click on debug
②Add io
③Run
2. During software simulation, MDK Logic Analyzer displays Unknown Signal when adding current logic analyzer signals
①. First make sure the input format is correct PXn is input PORTX.n
X is A, B, C...;
n is the corresponding pin number
The corresponding input of routine PA6 is PORTA.6
②. Set the Dialog DLL (select debug in Options) to DARMSTM.DLL and TARMSTM.DLL, and the parameters are:
-pSTM32F103RC, used to set up hardware and software emulation support for STM32F103RC (i.e., it can be used through Peripherals Select the corresponding peripheral dialog box to observe the simulation results).
Previous article:stm32 KEIL software setting program burning starting address
Next article:Keil project cannot be debugged
Recommended ReadingLatest update time:2024-11-16 15:55
- 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
- The most comprehensive list of 5G segment leading concept stocks in history
- HTS221 driver porting for MicroPython
- Isolated ADC Acquisition Solution for Analog Signals
- DSP C6000 keywords Keyword summary
- Problems with ADS1220
- Why do smart water meters use disposable 17450 (or other models) disposable lithium batteries? Why not use rechargeable batteries?
- 【Development and application based on NUCLEO-F746ZG motor】15. Mathematical model - voltage equation and electromagnetic torque equation
- Playing with Zynq Serial 42——[ex61] Image Laplacian Sharpening Processing of OV5640 Camera
- Snake moving in a twisting motion
- Qorvo's leading RF solutions