--- simulation using Keil MDK memo describes the basic functions

  Under with keil there for some time, the software simulation roughly summarized, mainly software skills;

  Two different options below:

  The first software simulation, hardware-independent

  The second hardware emulation, STC can be an IAP, STM32 required by j-link

  

image.png

 

  Start simulation interface:

  

image.png

 

  Detailed features

  1, Reset cpu: Reset option, meaning that when the program execution time, wanted to re-start, click here to return to the beginning of the main function

  2, Run: program start again at full speed, run to breakpoint stop when a breakpoint, no program has been run in accordance with the regulations,

  3, Stop: stop running.

  4, Step: single step, when it comes to sub-functions, the process proceeds to subroutine.

  5, Step Over: single-step, do not enter the subroutine when met, will run sub-function as a whole.

  6, Step Out; single step, if performed within the subroutine program, the bounce subroutine.

  7, Run to Cursor Line: Run to Cursor.

  8, Serial Windows: serial output window.

  9, Analysis Windows; logical analysis window, this window has three sub-options, here for Logic Analyzer as an example to explain the other two own research.

  Value of 10, the viewing window variables.

  11, running time.

  12, disassembly window.

  13, C language program window, where you can observe the program at this time to run.

  Keil4 of io port emulation, enter the method

  At this time, since the program is not running, p2 all port status is high, the interface is displayed as 0Xff

  When you click Step or Step Over,

  When confronted with delay, you can enter, you can Step Over

  Keil logic analyzer 4

  1; Analysis Windows: by default select the first Logic Analysis

  2; click setup, open setup Analyzer, as shown:

  1, the new

  2, named

  3, in what way is displayed, usually selected bit

  4, the value displayed in hexadecimal

  After setting click close, click Run full speed, then click Stop, you can get waveform.

Stm32 share some information for subsequent study reference

(Stm32 serial application)
http://www.makeru.com.cn/live/1392_1164.html?s=45051

How to transfer DMA data stm32
http://www.makeru.com.cn/live/detail/1484.html?s=45051

(STM32 interrupt system)
http://www.makeru.com.cn/live/1392_1124.html?s=45051

Guess you like

Origin www.cnblogs.com/111111lbj/p/11419062.html