C/C++ base project for Vorago VA108xx projects with CMake and Eclipse & VS Code support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Robin Müller 8dad441a34
build addition
12 months ago
cmake init commit 1 year ago
config clock now configurable 1 year ago
eclipse update eclipse project files 12 months ago
scripts fixed clang format script 1 year ago
src done 1 year ago
vorago README 1 year ago
.clang-format update code 1 year ago
.gitignore init commit 1 year ago
CMakeLists.txt small CMakeLists update 12 months ago
LICENSE init commit 1 year ago
NOTICE init commit 1 year ago
README.md build addition 12 months ago
jlink.gdb added gdb helper files 1 year ago

README.md

C/C++ template project for VA108xx based projects

Prerequisites

  1. ARM Cross-compiler installed and added to system path
  2. CMake installed
  3. SEGGER J-Link tools installed
  4. Eclipse or VS Code for development recommended, project files provided

Build

Instructions for command line. Make sure you can call the cross-compiler from the command line, e.g. with arm-none-eabi-gcc -v.

  1. Create build directory

    make build && cd build
    
  2. Set up build system. Depending on the OS and desired build system, you might have to specify the build system explicitely (e.g. with -G "MinGW Makefiles" or -G "Ninja" on Windows) instead of using the defaults

    cmake ..
    
  3. Build the project

    cmake --build . -j
    

Flashing and Debugging

It is recommended to use Eclipse or VS code for convenient flashing, but the instructions here show how to do it in the commnand line

  1. Start the JLink GDB server.

  2. Run the GDB application, for example gdb-multiarch

    gdb-multiarch -q -x jlink.gdb build/va10820-template
    
  3. The debugger should now be stopped at the start of the application. Press C to continue

Using VS Code

The only requirement on the VS Code installation is the following plugin:

Another requirement is that you still need to set up the Eclipse build configuration at least once in the build folder like shown in the build section. After that, you can use the Run & Debug Tab of VS Code to debug your application.

Using Eclipse

The only requirement on the Eclipse installation is the following plugin:

  • Eclipse Embedded CDT. It is recommended to install the xPacks cross-compiler as it offers the best Eclipse support when used with this plugin

It is also recommended to install the following plugins

After installing all plugins, copy the .cproject and .project files from the eclipse folder to the repository root. Now open the folder in Eclipse as a project and make sure to deselect the eclipse folder in the selection Window.

Another requirement is that you still need to set up the Eclipse build configuration at least once in the build folder like shown in the build section. After that you should be able to build and debug with the hammer and debug button conveniently now.