SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions about processor boards have here!
User avatar
By maxjon01
#235671
Hi.
I'm pretty new to Arduino and CAN. Is there any way of connection and running the demo programs for the CAN-BUS Shield with the Arduino UNO WiFi rev2? When I tried I get a lot of errors saying that variables are not defined and there are programmed for different architectures. As I understand it, it's the mcp2515.c file where the errors are when communicating between the Arduino and the CAN-BUS Shield. Anyone that has tried or have some other library that would fix the issue? Or knows where to start investigating how to fix the issue?
User avatar
By maxjon01
#235683
Thanks for the reply. Maybe I should clarify that I have the SparkFun CAN-BUS shield and the Arduino with build in Wifi. The example code from SparkFun dosen't compile to the Arduino for some reason.

The first error I get is:
WARNING: library SparkFun_CAN-Bus_Arduino_Library-master claims to run on avr architecture(s) and may be incompatible with your current board which runs on megaavr architecture(s)

And after that it complains about undeclared variables, but from what I can see the variables are declared. I guess it's because the Arduino Uno WiFi Rev2 uses another chip than the regular Arduino Uno. But maybe there is a workaround?

Hardware I use:
https://www.sparkfun.com/products/13262
https://store.arduino.cc/products/arduino-uno-wifi-rev2
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum