Hi All. I'm new to the Arduino STM32 project so forgive me if this has been covered and I have searched for the answer. I'm using a STM32F103C8 bluepill to send and receive can traffic. As the messages I want to receive are coming in fast I would like to use a receive interrupt but cannot find out how to do this. Currently using polling. Any help very much appreciated.
Using core v 1.9.0 and these examples : https://github.com/nopnop2002/Arduino-STM32-CAN
CAN Receive Interrupt
-
- Posts: 633
- Joined: Thu Dec 19, 2019 1:23 am
Re: CAN Receive Interrupt
For the current forum:
https://www.google.com/search?&q=can+si ... 2duino.com
... which leads to: https://github.com/exothink/eXoCAN#examples
https://www.google.com/search?&q=can+si ... 2duino.com
... which leads to: https://github.com/exothink/eXoCAN#examples
Examples:
bpCanBlink.ino
A minimal example that toggles an LED upon reception of a CAN Bus frame. Using the mode 'PORTA_11_12_WIRE_PULLUP' two or more boards communicate via a single wire.
bpCanBlinkInterrupt.ino
Adds interrupts for receive.
eXoCanDataSim.ino
Simulates varying data from multiple sensors and sends data to the CAN and Serial busses.
eXoCanDev.ino
This example exercises most of the eXoCAN API. It prints the RX/TX Can frames to the Serial port.
Re: CAN Receive Interrupt
Thank you. Much appreciated:)