Skip to content
Boilerplate for ChibiOS projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hw-example
include
mcu-debug @ 3bfd846
.gitmodules
Project.mk
README.md
aea.mk
init
update

README.md

Description

This is the boilerplate for starting up a ChibiOS project on Linux.

Benefits

  1. Automatically tracks important dependencies (ChibiOS hash, GCC version) for future-proof builds.

  2. Provides an easier way to put breakpoints while using command line GDB client:

    1. Switch to your code editor and place a // debugger comment at the end of the line which you want to place a breakpoint.
    2. Switch to your GDB prompt
    3. Ctrl+C
    4. update-breakpoints (or ub for short)
    5. Type c to continue.
  3. You can share your custom headers (see ./include folder) between your projects.

  4. Provides an easy switch for Debug and Release build targets (see Target file)

Requirements

  1. Tested only on Linux.
  2. stlink as the GDB server.
  3. (Optional) Tmux.

Usage

  1. Create your project directory, eg. "myproject"

     mkdir myproject
     cd myproject
    
  2. Add this library as a submodule:

     git submodule add https://github.com/ceremcem/chibi-project
     git submodule update --init --recursive
    
  3. Initialize:

     ./chibi-project/init
    
  4. Your main file is app/main.c.

  5. Build your project:

     make
    
  6. Flash or debug your project:

     make write # for only flashing
     make start-debugging # to start debugging your application.
    

Example

See https://github.com/ceremcem/chibi-examples2 as an example usage of this tool.

You can’t perform that action at this time.