Giter Site home page Giter Site logo

CAN Bus Example about renode HOT 4 CLOSED

yassinedevop avatar yassinedevop commented on June 12, 2024
CAN Bus Example

from renode.

Comments (4)

Mes-ser avatar Mes-ser commented on June 12, 2024 1

Look at this commit 7678bca
you can download nightly build from https://builds.renode.io/

And can confirm - It work, I used it.

PROTIP:
If you have multiple machines in emulation, then use CreateSocketCANBridge only in one of them, otherwise packets sent by them will cause infinite loop of packets.

from renode.

yassinedevop avatar yassinedevop commented on June 12, 2024 1

I tried it with my stm32f4 which has a classic CAN and it's working.
Thanks for the help !

from renode.

dzid26 avatar dzid26 commented on June 12, 2024

Example of flexcan https://github.com/renode/renode/blob/master/tests/peripherals/S32K3XX_FlexCAN.robot. There are other tests with CAN too.

Seems like F0 and H7 are the only ones with CANbus currently.

can: CAN.STMCAN @ sysbus <0x40006400, +0x400>

fdcan1: CAN.MCAN @ sysbus 0x4000A000

But STCAN is implemented here so maybe it is just a matter of just adding few lines to repl for F4 board (or STM32F103 in my case).

from renode.

yassinedevop avatar yassinedevop commented on June 12, 2024

Thanks for the help but my question was if there is an example to connect a machine ( stm32f4 ) to the host through socketCAN, I mean by the host here is the machine running renode. For the example that you shared it was a communication between two emulated machines ( mr_canhubk3 ) communicating through an emulated CANhub on renode.
A communication between host and an emulated machine will be through the virtual CAN ( vcan ) it's a kernel module on linux machines, but I don't know if there is anyway to forward the canHub packets to the vcan.

from renode.

Related Issues (20)

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.