Note: Silicon IDE and Keil software must be installed before downloading the program
Keil installation:
Please go to Keil official website: https://www.keil.com/c51/demo/eval/c51.htm to download and install.
·Silicon IDE installation: 1. Integrate Keil software in Silicon IDE ( click to view ) 2. As shown in the figure below, click "Options -> Connection Options" to enter the download mode settings 3. Set the download mode as shown in the figure below. The following figure shows the download/simulation using the C2 interface. 4. As shown in the figure below, click "Debug -> Connect" in the menu bar or press the button in the red circle to connect the software and hardware: 5. Click the button in the red circle as shown below to download the program Then a progress bar will pop up 6. When the progress bar is completed, it means that the program download is complete, and then it enters the simulation interface, as shown in the figure below The following is a brief introduction to using Silicon IDE for simulation debugging Debug Control Bar 1. Connect/Disconnect software and hardware devices (Connect or Disconnect) 2. Download code (ALT + F5) 3. Start/Stop Full Speed (Go or Stop) (F5) 4. Step (F11) 5. The Multiple 6. Step Over (F10) 7. Run to breakpoint/cursor (Run To Cursor) (F8) 8. Insert or Remove Breakpoint (F9) 9. Remove All Breakpoints a. Enable or Disable Breakpoint b. Enable or Disable All Breakpoints c. Open the internal watchpoints dialog box (Watchpoints) d. Force write data (Refresh Values) (Alt + R) e. Reset (Ctrl + R) f. Next bookmark g. Toggle Bookmark h. Previous bookmark i. Delete all bookmarks (Remove bookmark)
Please go to the Silabs official website: http://www.silabs.com/products/mcu/Pages/SoftwareDownloads.aspx?cm_sp=
The debug control bar can control the execution status of the program. All debug controls can be implemented by menus, shortcut keys and debug toolbar.
This command will start or stop the debugging mode. When in the starting state, all debugging control commands are valid and enter the debugging platform; when in the stopping state, all debugging control commands are invalid and exit the debugging platform.
This command will download the program to the microcontroller.
The Run command in the debug menu will start (restart) the program. The program will continue to run until it is stopped by the user or a breakpoint is encountered. This command can only be executed when the program is in the stopped state.
The Step command in the debug menu executes only one instruction. If this instruction contains a function call/subroutine call, the function/subroutine will also be executed at the same time. If a user-set breakpoint is encountered in the Step command, the program will be suspended. After the Step command is executed, the information in all windows will be updated.
Step command in the debug menu executes multiple instructions. The actual number of instructions is set by the user. If a breakpoint set by the user is encountered in the Multiple Step command, the program will be suspended. After the Multiple Step command is executed, the information in all windows will be updated.
The step over command in the debug menu will cause the program to run without entering the subroutine until the current function ends. If a breakpoint set by the user is encountered, the program will be suspended. When the program is in the outermost layer (such as the main function), the step over command is executed at this time, and the program will continue to run until a breakpoint is encountered or it is stopped by the user. After the command is executed, the information in all windows will be updated.
The Run to breakpoint or cursor command in the debug menu will cause the program to run to the breakpoint in the source code window or the statement indicated by the cursor and stop. If the program never reaches the statement indicated by the cursor, the program will continue to run until it is stopped by the user. When this command ends, the information in all windows will be updated. Since this command is related to the breakpoint or cursor position, it is only valid when the source code window is activated.
Write the modified value to the emulator, the register window will reread the emulator, the window will be refreshed, so the changed value will be displayed in red. Note that the register value can only be modified when the debugger is in the stopped state. When the target processor is executing user program code, it is not allowed to be written.
This command can reset the target program. This command cannot be executed when the program is running. If the user is in source mode, the program will jump back to the first user source code statement after the reset is completed. After the reset command is executed, the information in all windows will be updated.
Previous article:C8051F Simulation Debugging Quick Start (Keil)
Next article:C8051F Programming Quick Start (Keil)
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Introduction to 10G Ethernet Test Solution
- How to use the C2000 chip to generate the following PWM waveform
- EtherCAT interface reference design for TI high-performance MCUs
- BLE ultra-low power voiceprint door lock
- RISC-V/ARM MCU IDE MounRiver Studio dual-core development project practice (CH32V103&CH32F103)
- "Playing board" + STM32F030Disco driver TM1628 control chip
- [Power supply production] Make a low-power linear power supply with waste materials
- Happy New Year!
- [RVB2601 Creative Application Development] Embedded Development, I'm 10 Times Faster Than You -- RVB Dynamic Loading Model MBRE
- Analysis of WDT in MSP430 MCU