Comments (4)
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.
I tried it with my stm32f4 which has a classic CAN and it's working.
Thanks for the help !
from renode.
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.
renode/platforms/cpus/stm32f0.repl
Line 167 in d02cf75
renode/platforms/cpus/stm32h743.repl
Line 280 in d02cf75
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.
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)
- Error while using CC2520 SPI peripheral on STM32F4
- Error when running HSS in Renode with PolarFire SoC Icicle Example .resc files HOT 4
- STM32 Timer limits behaviour
- Trying to write to a disabled Tx
- STM32F2 DMA driven SPI
- STM32F2 DMA driven I2C
- Support of an ethernet device driver (Hifve_Unleashed board)
- STM32H7 Timer triggered DMA sampled ADC
- Compilation of VerilatorIntegrationLibrary in Xcelium fails HOT 1
- Support for MK10DN512VLQ10 NXP Kinetis)
- Renode v1.15.0 Fatal error in Mac HOT 1
- STM32H7 I2C
- STM32H7 SPI
- STM32_Timer Produces error HOT 6
- STM32 F2 and H7 EMAC
- Support of an ethernet device driver (litex_vexriscv board) for Zephyr
- Updating BME280 I2C sensor value using python script. HOT 1
- Save statefile inside a Hook (it hangs) via python script HOT 1
- Read value from GPIO
- hi i am trying to run gdb for blinky which is using nordic-blinky-zephyr.elf and using nrf52840 board when i am trying gdb not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from renode.