This library calls the no parameters overload of the "Arduino Mbed OS Portenta Boards" platform's bundled "Ethernet" library's arduino::EthernetClass constructor:
Use the last compatible version (4.1.3) of the "Arduino Mbed OS Portenta Boards" platform:
Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "Arduino Mbed OS Portenta Boards" entry.
Select "4.1.3" from the drop-down menu in the "Arduino Mbed OS Portenta Boards" entry.
Click the "INSTALL" button at the bottom of the entry.
Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings.
I'll provide instructions you can follow to do that:
Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
A menu will appear on the editor toolbar:
Select the "Preferences: Open Settings (UI)" command from the menu.
ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Preferences" tab will open in the Arduino IDE main panel.
Type arduino.checkForUpdates in the "Search Settings" field of the "Preferences" tab.
Uncheck the box under the "Arduino: Check For Updates" setting.
Close the Preferences tab by clicking its X icon.
If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries. You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus. You can check for new versions of boards platforms and libraries by selecting "Updatable" from the "Type" menu in the Boards Manager and Library Manager views.
Describe the problem
This library calls the no parameters overload of the "Arduino Mbed OS Portenta Boards" platform's bundled "Ethernet" library's
arduino::EthernetClass
constructor:https://github.com/arduino-libraries/Arduino_PortentaBreakout/blob/80389c0b65272308b13aa3135e77edd02f1fca8d/src/Arduino_PortentaBreakout.h#L254
That overload was removed in the 4.1.5 release of the "Arduino Mbed OS Portenta Boards" platform (https://github.com/arduino/ArduinoCore-mbed/pull/901).
🐛 Compilation of the library fails:
https://github.com/arduino-libraries/Arduino_PortentaBreakout/actions/runs/9914256837/job/27392985691#step:3:171
To reproduce
🐛 Compilation fails with a "
no matching function for call to 'arduino::EthernetClass::EthernetClass()'
" error.Expected behavior
Library is compatible with the latest version of the "Arduino Mbed OS Portenta Boards" platform.
Library version
80389c0b65272308b13aa3135e77edd02f1fca8d
Additional context
Originally reported at https://forum.arduino.cc/t/portenta-h7-compilling-error/1280883
Workaround
Use the last compatible version (4.1.3) of the "Arduino Mbed OS Portenta Boards" platform:
Arduino IDE will occasionally notify you that a new version of the boards platform is available, you'll need to refrain from accepting the offer that will cause an update back to the problematic version of the platform. If you find these notifications annoying, you can disable them via the advanced settings.
I'll provide instructions you can follow to do that:
arduino.checkForUpdates
in the "Search Settings" field of the "Preferences" tab.If you disable the automatic update check, make sure to periodically do a manual check for newer versions of Arduino IDE and your installed boards platforms and libraries. You can check for new versions of Arduino IDE by selecting Help > Check for Arduino IDE Updates from the Arduino IDE menus. You can check for new versions of boards platforms and libraries by selecting "Updatable" from the "Type" menu in the Boards Manager and Library Manager views.