Skip to content

StarkStrom-Driverless/fse_pb_bsp_doc

Repository files navigation

Usage

Creating a new example

# Creating a folder
mkdir example_example
cd example_example

# adding lib
git submodule add git@github.com:StarkStrom-Driverless/fse_pb_bsp.git



# checkout to version 
# This is based on the version printed on the title page of the .pdf
cd fse_pb_bsp
git checkout <version>

./init.sh

# go back
cd ..

Init a example

cd <example-folder>

# update submodule in the base dir
git submodule update

# checkout to version 
# This is based on the version printed on the title page of the .pdf
cd fse_pb_bsp
git checkout <version>

./init.sh

# go back
cd ..

Building a example

For building, flashing and debugging a tool called ss is provided. For this a soft link is created by the init script. The usage is very simple.

First you have to source the environment with

source .venv/bin/activate

after every new terminal startup

Type ./ss and you will get a overview of the functionality.

  • ./ss build builds the example
  • ./ss flash flashes the example to the controller
  • ./ss oocd_start starts a open-ocd server. With make gdb you get a gdb debug tui.
  • ./ss canflash <file>.bin 0x80 flashes the binary via CAN over the ID 0x80
  • ./ss oocd_stop stops the open-ocd server

Overview

LIBRARY OVERVIEW

PIN CAPABILITYS

INSTALL

CAN USAGE

Fundamentals

PIN DEFINITION

TASK DEFINITION

MAIN SCALITON

Examples

BLINKY

INPUT

ADC

CAN_BOOT

CAN READ

CAN SEND

CAN TIMEOUT DETECTION

PWM

FREQUENCY MEASUREMENT

SPI

INPUT OBSERVATION

ETH RX

ETH TX

PID CONTROLLER

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors