Hi,
I have ported the HardwareCAN library to the newest core I took from the repository.
It crashed on initialization of the CAN interface.
I found out that the code of the initialisation in HardwareCAN.cpp
CAN_STATUS HardwareCAN::begin(CAN_SPEED speed, uint32 mode)
included a
Serial.end();
On earlier versions of the core, it used to work. Now it crashes. As a quick and dirty solution I commented it out.
In this state, my sketch works, but when its execution starts, my PC complains that an unrecognized USB device has been detected. It must be because the USB serial needs to be properly closed.
Who can tell me what is wrong now? What is the correct syntax for closing the USB serial interface?