Keil MDK4.21 can not set the STLINK emulator SWD parameter solution-change to version 4.7 or higher

When using MDK to debug STM32, the emulator is a very important device. Some people may encounter this situation: the emulator can only be set in a simple mode, not the clock and other parameters. Why? What should be done, this article will talk about it.

The most common one is the following emulator, STLINK V2. It is small, strong in workmanship and easy to use.

When debugging, it was found that the parameters could not be set correctly, and only the SWD mode setting could be seen.

Utilities cannot be set here either

The query found that KEIL software version 4.7 or above is required, so install it and try it.

After installation, check the version

So you can set

Click the setting button and found that it is no longer a pure SW JTAG mode setting, but a professional setting interface. On the right side there are also found online emulator parameters.

After the setting is completed, click Flash and find that the programming is completed soon. The emulator is much faster than the USB serial port burning, and, DEBUG single-step execution with the oscilloscope is the favorite of the bottom-level driver debugging developers.

 

 

Further reading:

STM32F103 flying line connects ST-LINK V2 STLINK emulator JTAG SWD

Guess you like

Origin blog.csdn.net/youngwah292/article/details/107146734