Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.42 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.42 KB

Simple LEDs blinking

======================================

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.

Preparing

  1. Install cmake.
  2. Download an arm-none-eabi toolchain and add path to toolchain to the PATH enviroment variable.
  3. Download Arterytek openocd and build it by following instructions from README file.

Building

  1. Create and go to build directory
    mkdir build && cd build
  2. Run cmake
    cmake ..
  3. Build
    make -j8

Debugging

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".