MCP ExplorerExplorer

Mcp2518fd Esp32

@caleb-snow-cbmon 10 months ago
1 Apache-2.0
FreeCommunity
AI Systems
MCP2518FD Library for ESP32

Overview

What is Mcp2518fd Esp32

MCP2518FD-esp32 is a library designed for interfacing with the MCP2518FD CAN FD Controller, specifically for use in ESP32 projects.

Use cases

Use cases include vehicle diagnostics, data logging in automotive systems, and communication between microcontrollers in embedded systems.

How to use

To use MCP2518FD-esp32 in an existing esp-idf project, add the ‘components/MCP2518FD’ directory to your project’s components directory, then run ‘idf.py reconfigure’ and optionally ‘idf.py menuconfig’ for configuration options.

Key features

Key features include support for configuring oscillator frequency, FIFO sizes, and other parameters through the MCP2518Config.hpp file, as well as the ability to listen for and echo CAN messages.

Where to use

MCP2518FD-esp32 is suitable for automotive applications, industrial automation, and any project requiring CAN communication.

Content

MCP2518FD Library for ESP32

This is a library for interfacing with the MCP2518FD CAN FD Controller.

Setup

This library was written to be used in esp-idf projects. It may work in PlatformIO, but this has not been tested.

To use in an existing esp-idf project, simply add the components/MCP2518FD directory to your project’s components directory, run idf.py reconfigure, and optionally, idf.py menuconfig.

Configuration

There are several configuration options that can be accessed via idf.py menuconfig. They can be found under Component config > MCP2518FD Configuration. Changing these results in a complete rebuild.

Configuration of the MCP2518FD itself can be found in components/MCP2518FD/config/MCP2518Config.hpp. Here you can set the oscillator frequency, FIFO sizes, etc. During compilation, these constant expressions are used to generate the MCP2518’s memory map, and so is able to determine whether the given config is valid.

Example

The repository itself is an example project that can be built using idf.py build. The example application simply initializes the SPI bus, initializes the MCP2518FD, then enters a infinite loop listening for messages and echoing them.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers