1、Development environment preparation
Development board: APM32F030R8T6 MINIBOARD
Debugger : J-Link or Geehy-Link
Operating System: WIN10 64-bit OS
IDE:Eclipse IDE for Embedded C/C++ Developers Version:2022-06 (4.24.0)
Cross Compile tool chain: gcc-arm-none-eabi-10.3-2021.10-win32.exe
Build tool: xpack-windows-build-tools-4.3.0-1
GDBServer : OpenOCD or J-Link GDB Server CL V7.80a
Installation
The eclipse - IDE
Gcc-arm-none-eabi
Jlink – Need 7.70 or later.
Openocd https://github.com/GeehySemi/Openocd
xpack-windows-build-tools

2、 Environment configurations
Add the bin folder of the openocd, xpack-windows-build-tools, and arm-none-eabi-gcc
installation directories to the path environment.


After adding system environment variables, you can open cmd and enter arm-none-eabi-gcc -v, make -v, and openocd-v to check whether the variables are added successfully.

3、 Eclipse startup and configurations
- Open eclipse’s Settings Window and select Window -> Preference.

- Switch to the MCU list and modify the configuration item with the Global attribute.
Switch to Global Arm Toolchains Paths, where fill in the bin folder of the ARM-gcc installation directory.

- Switch to the Global Build Tools Path, where you can enter the bin folder in the make tool installation path.

- Switch to the Global OpenOCD Path, insert Openocd. exe into the Executable, and insert the bin Folder from your openocd tool installation path into the Folder.

- Switch to the Global SEGGER J-Link Path, insert JLinkGDBServerCL.exe into the Executable, and insert your jlink installation path into the Folder.

- Download the SDK file from Geehy’s official website and import it to the Eclipse project.
https://global.geehy.com/support/apm32/?id=267

- Debug Settings
If you use Jlink, you need to select GDB SEGGER J-Link
Select Debugger and enter the part number you are using in Devece name.

If you use Geehylink, you need to select GDB OpenOCD
Config options:-f interface/cmsis-dap.cfg -f target/apm32f0xx.cfg

In the SVD Path Folder, fill in the SVD file path of the project, which has been placed in the APM32 project.The.svd file is used to view register names in eclipse.
It has been placed in Package\SVD in APM32F0XX_SDK_V1.7.


Use renderings.

