When I was writing a report a few days ago, I accidentally needed to use the software simulation in Keil5 to see the output PWM waveform. After several attempts, I finally figured it out. The problem of unknown signal also appeared.
1. Setting steps for software simulation with Keil5
First, as shown in the figure below, you need to set it to software simulation (it is not possible to set it to hardware simulation here), and then the following parameters also need to be changed. The second red circle checked -pSTM32F103ZE is based on your own chip
Settings. Here I choose the STM32F103ZET6 chip.
2. Basic simulation settings
First enter the simulation settings, then click the waveform viewing icon.
Set the simulation parameters by clicking Setup...
Set up and add the hardware IO ports that need to be viewed. Enter the pins that need to be observed, such as PORTX.i, in setup.
If unknown signl appears at this time, it is a problem with the debug settings.
At this time, you need to return to the simulation settings in the first step to check whether it is set according to your own development board.
After adding the IO ports that need to be viewed, click RUN to run.
If you don’t see the waveform appear in the box at this time, check whether your settings are reasonable.
Right click on the left side of the logic analyzer to set the data of each wave to bit and Hexadecimal values
If the waveform does not change dynamically at this time, you need to check whether the following settings are available
If you need to adjust the waveform to facilitate viewing, click in out all to adjust the waveform.
It is particularly important to note that my IO is set to open-drain output, but the simulation cannot output the waveform. This problem has been bothering me for a long time.
Previous article:Solution to the problem that peripherals are not displayed during Stm32f1 Keil5 debugging
Next article:STM32 system clock hardware simulation view
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- "Smart eyes" to identify Tektronix PCIe: Electronic engineers are happy to see the verification code 12306
- Use 0-3.3v PWM signal to generate 0--15v negative pulse
- Charging and discharging solutions in TI battery test equipment
- Three things you need to understand about WiFi 6E
- The voltage value of BQ7693003 for lithium battery protection is too high. How to solve it? Please help everyone
- DSP emulator driver installation error caused by the error and processing
- Three methods of realizing dual control and multi-control of intelligent switches
- Logic Analyzer Trigger Mode Selection
- RP2040 stepper motor driver
- A troubleshooting example of connecting XDS100V3 debugging target board with CCS