Error on the link to find the Arduino_CAN for portenta machine control

Hi

After upgrade to the new MacOS I am having problem to get the potenta library for Arduino_CAN that exists in the following library

/Users/tobiasvonhaslingen/Library/Arduino15/packages/arduino/hardware/mbed_portenta/4.1.5/libraries/Arduino_CAN

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

What is the real problem?

Can you post the complete error message?

In file included from

/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

Compilation error: exit status 1

I have the same issue, working with Windows 11. Has it been solved by now?

Hi @f-fink. Are you using Arduino IDE or Arduino PLC IDE when you encounter the problem?

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. :slight_smile:

OK, then you may find the solution in the discussion here:

Thanks for the help. I will give it a try once the current project is finished!