Software MDK5Stm32 's PackOpen MDK, add ProjectFirst, find the Options option for project, where debug is selected as Use Simulator, which is the choice of software emulation.
Then add the IO that you want to watch for analysis, such as porta.0, in the setup option of Logic Analyzer. After you start the simulation you will see a waveform in the Logic Analysis window, adjust zoom in or out to see
① point Open Debug② Add io③ Run second, software simulation, MDK Logic Analyzer when adding current logic analyzer signals display unknown Signal ①. First make sure the input format is correct PXn is the input PORTX.Nx is a,b,c ... ;n is the corresponding PIN numberroutine PA6 corresponding input is porta.6②. Set the Dialog DLL (options inside Choose Debug): Darmstm. DLLs and TARMSTM.DLL, Parameter are:
-PSTM32F103RC for setting up hardware and software simulations that support STM32F103RC (that is, you can observe the simulation results by peripherals Select the corresponding Peripherals dialog box).
Stm32 MDK5 software emulation view IO port output