Keil4 online simulation tutorial sharing

Step 1: Confirm that the written program can be compiled. Then click "Debug"→"Start/Stop Debug Session" to enter debug mode. The operation is shown in the following figure:

Step 2: Call up the watch window (the setting window used to set the variable to be observed); click "View"→"Watch&Call Stack Window". As shown in the figure below:


Step 3: The "Watch" window pops up, as shown below:


Step 4: Set the variable to be observed in the pop-up "Watch" window, click "Watch#1" → double-click "type F2 to edit" → enter the variable name to be observed, here I want to observe P11, The specific operations are as follows:


Step 5: Click the "Single-step debugging" button, click once, and observe the changes of the P11 variable in the "Watch" window. As shown below:


Step 6: Click the "Single-step debugging" button again. At the same time observe the changes in the variable P11 of the "Watch" window. As shown below:


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326144236&siteId=291194637