CAN Receive Interrupt

Post here first, or if you can't find a relevant section!
Post Reply
jackbauer
Posts: 2
Joined: Tue Nov 03, 2020 2:06 pm

CAN Receive Interrupt

Post by jackbauer »

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
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: CAN Receive Interrupt

Post by mrburnette »

For the current forum:
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.
jackbauer
Posts: 2
Joined: Tue Nov 03, 2020 2:06 pm

Re: CAN Receive Interrupt

Post by jackbauer »

Thank you. Much appreciated:)
Post Reply

Return to “General discussion”