Summary of STM32 hardware simulation problem records in Keil5

Summary of STM32 hardware simulation problem records in Keil5

Problem Description

0x1FFFF3AE 0549      LSLS     r1,r1,#21
0x1FFFF3B0 D5FB      BPL      0x1FFFF3AA
0x1FFFF3B2 F8D01808  LDR      r1,[r0,#0x808]

Using the ARM emulator, after turning on the emulation, the pointer can't get into Main(), and stops around here.

use platform

STM32F103ZET6
Keil5
Window10 Pro

processing method

There are many solutions found on the Internet here, some of which solve the current problems encountered, and other parts are recorded for future use. According to the cause analysis and solution, it can be roughly divided into the following categories.

Hardware wiring problem

  1. The two jumper caps of BOOT are wrongly connected here. Remember that during the simulation, both jumper caps need to be connected to GND and the switch should be pressed (I actually just press the switch button to solve it?? I don’t understand it very well. I will leave it here and fill it in later. pit.). External power supply needs to be connected separately . This can be solved by adding an external power supply separately when JLink is downloaded.
  2. There is a problem with the code. This blogger teaches us how to correct code errors and redirect problems . This blogger reposted it from someone else. I can’t open the original address. You can take a quick look. At the same time, it should be noted that Keil simulation only supports up to 5 breakpoints, and this problem will occur if it is greater than or equal to 5 power failures! ! ! ! ! !
  3. Problems with keil5 software itself There is another idea here is that problems with the software itself need to go to the official website to supplement the software.

Guess you like

Origin blog.csdn.net/qq_44879321/article/details/126471300