After I copied the ArduinoCAN library to my Library for my code it worked and I got following problem.
And the api/HardwareCAN.h in library
/Users/tobiasvonhaslingen/Library/Arduino15/packages/arduino/hardware/mbed_portenta/4.1.5/cores/arduino/api/HardwareCAN.h
/Users/tobiasvonhaslingen/Documents/Arduino/libraries/Arduino_PortentaMachineControl/src/Arduino_PortentaMachineControl.h:14:0,
from /Users/tobiasvonhaslingen/Documents/Arduino/2024_09_14_PID_PumpAutomation_1_Jonas/2024_09_14_PID_PumpAutomation_1_Jonas.ino:3:
/Users/tobiasvonhaslingen/Documents/Arduino/libraries/Arduino_PortentaMachineControl/src/CANCommClass.h:16:10: fatal error: Arduino_CAN.h: No such file or directory
#include <Arduino_CAN.h>
^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Hi ptillisch,
I am using the latest PLC IDE version (ver. 1.0.8.0). The Library is included within the respective PLC IDE function as PortentaMachineControl Version 1.0.3 and successfully downloaded. During compilation, I get the same error as haslingen had. Manually copying the ArduinoCAN.h library into the folder does help, until some other file is apparently missing.
I proceeded to work with the old Arduino_MachineControl library, which didn't produce any compilation issues, but ended up trying to keep everything within the PLC-Side now, as trying to "talk to" (within the plc deactivated and unused) output pins or the USB connection from within a sketch constantly led to communication issues, soft-bricking the Arduino.