GithubHelp home page GithubHelp logo

can_bootloader's Introduction

CAN Bootloader for STM32L4/F4 Devices

This bootloader will use a connected CAN bus to flash new application firmware to the device.This project was built on top to the PlatformIO project in order to simplify the build system and CMSIS dependency.

Useful Links


Getting Started

Install PlatformIO

Before you clone this project, install PlatformIO (PIO) from one of the following ways:

1. PIO IDE

PIO has a great extension for VSCode and you can do all of the development work from there. A guide from PlatformIO can be found here, there is also support for CLion. If you install PIO with this option, you will also be automatically installing the PIO CLI as the editor extensions just provide a nice interaction layer to the PIO tools.

2. PIO CLI

If you want to use your own editor, PIO also has a command line interface for working with PIO projects, information can be found here for setting that up.

Clone & Build the project

cd <per_git_directory>
git clone [email protected]:PurdueElectricRacing/CAN_Bootloader.git
cd CAN_Bootloader
pio build --environment nucleo_l432kc

A good resource for learning how to use PlatformIO is from their documentation, the Tutorials and Examples page has a lot of good content. Most of the videos on YouTube are Arduino-based projects, but all of the pio commands will be very similar to this project

Unit Testing

PIO comes with easy integration with the Unity unit testing framework for C. The test directory contains modules that can be run with the pio test -e native command. This will compile the test\<module>\test_<component>.c for your "native" desktop environment and does not require a microcontroller. Future unit tests can be created for execution on actual ARM hardware, but a large portion of state machine/data structure code can be tested on your local machine.

can_bootloader's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

patrickbaus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.