Skip to content

leonrinkel/sam-fd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sam-fd

ATSAMC21 based CAN-FD interface

Render of the interface PCB

Initialization

Make sure you have a proper Zephyr development environment according to the official documentation.

west init -m https://git.leon.fyi/sam-fd-sdk --mr main sam-fd-workspace # or
west init -m https://github.com/leonrinkel/sam-fd-sdk --mr main sam-fd-workspace
cd sam-fd-workspace
west update

Building

west build --sysbuild -b sam_fd sam-fd-sdk/app

Flashing

Using a Debugger

west flash --runner jlink # or
west flash --runner pyocd

Via Serial Recovery

Serial recovery mode can be entered by running a command like the following immediately after resetting.

mcumgr \
    --conntype serial \
    --connstring dev=/dev/cu.usbserial-110,baud=115200 \
    image upload -e build/app/zephyr/zephyr.signed.bin

License

Please see hardware/LICENSE and sam-fd-sdk. The software side of this project is based on Zephyr which is mostly licensed under the Apache-2.0 license.