======================================
The project forked from original"led_toggle" example from Arterytek Firmware Library
Download Arterytek at32f407 Firmware Library
but based on open source solutions to build and debug application.
You can use this project as a template to create more complex applications for Arterytek MCUs.
To build project cmake with a GNU toolchain are used.
Download GNU toolchain
To debug Arterytek openocd is used.
Download Arterytek openocd
To debug using VS Code editor openocd configuration is attached at .vscode folder.
- Install cmake.
- Download an arm-none-eabi toolchain and add path to toolchain to the PATH enviroment variable.
- Download Arterytek openocd and build it by following instructions from README file.
- Create and go to build directory
mkdir build && cd build
- Run cmake
cmake ..
- Build
make -j8
Just run VS code and start debug.
Note: if path to openocd configs was changed during openocd installation
you need to edit ".vscode/launch.json".