Visual Stdio GDB新建工程

  1. On the first page of the wizard select “Embedded Binary -> MSBuild“:Visual Stdio GDB新建工程
  2. Select your device. In this example we will use the STM32F4 Discovery board with the STM32F407VG device:Visual Stdio GDB新建工程
  3. Select the LEDBLink (HAL) sample in the sample list:Visual Stdio GDB新建工程The sample project will use the PWM to gradually change the intensity of the LED, so we recommend setting the LED port and channel number to match your board. However, the Live Watch functionality shown in this tutorial will work even without an LED.
  4. On the last page of the wizard select the debug method. As long as you are using either OpenOCD, or the J-Link GDB stub, Live Watch will work as expected:Visual Stdio GDB新建工程Once you have selected the debug method, press “Finish” to generate the project.