Skip to content

emmehan/CANWakeUp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 

Repository files navigation

Work in progress

CAN WakeUp

Build Status

The intendation of this project is to create a device that will act as a Wake-Up source for CAN devices. A microcontroller (STM32F103) sends a cyclic CAN messages using an external CAN transceiver (TJA1050).

This project includes the EAGLE schematic and layout files among the source code for the microcontroller.

Project structure

Hardware

@TODO

Software

Big shout-out to Patrik Jaworski for his blog post about the initial bring up of the STM32Fx. It really helped me to get back on track after a longer absence from the STM32 device family.

The software is based on the STM32CubeF1 MCu Package from ST Microelectronis. The application software is based on the ARM CMSIS library for the STM32F103C8T6 device.

It is developed on Linux (Arch-Linux, Kernel 4.19.2) using the GNU ARM toolchain(gcc-arm-none-eabi-*).


Build

To build the firmware run:

make -C ./Software MAIN=FW_NAME

in directory.

The MAIN parameter is optional and used to define the firmware name.

It defaults to CANWakeUp.


Flash

To flash the firmare to the controller run:

openocd -f interface/stlink-v2-1.cfg -f target/stm32f1x.cfg -c "program ./build/$FW_NAME.hex  verify reset exit"

while substitute $FW_NAME to the correct firmware filename.

There are preconfigured tasks for Visual Studio Code available for Building, Cleaning, Flashing and Debugging (using the Cortex-Debug extension by marus25).


Software Documentation

To build the documentation run (requires Doxygen):

make doc

The documentation will then be available in ./doc/html/index.html.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages