I have some code which previously compiled and ran completely satisfactorily under versions 1.8.10 (and earlier versions). The error messages aren't very meaningful to me, but in verbose mode:
Using board 'arduino_due_x' from platform in folder: C:\Users\KASS\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12
Using core 'arduino' from platform in folder: C:\Users\KASS\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12
Detecting libraries used...
recipe.preproc.macros pattern is missing
Compilation error: recipe.preproc.macros pattern is missing
I am compiling for the Arduini Due, which is recognised, and being new, has the Blink program running. Under earlier versions of the IDE I have compliled the program many times.
I had upgraded to the IDE v2.0.1 version but when the compilation failed I upgraded to v2.0.3 but the issue remains. My problem is that the error message is a little too dense for me to know where to look.
Any hints that might get it running will be appreciated. I do not wish to revert to version 1.8!
Hi @kaspencer. It looks like your installation of the "Arduino SAM Boards (32-bits ARM Cortex-M3)" platform of the Arduino Due has been corrupted in some way. You should be able to fix it by uninstalling the bad version and then installing it over again.
I'll provide instructions:
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 SAM Boards (32-bits ARM Cortex-M3)" entry.
Hover the mouse pointer over the "INSTALLED" label on the "<Arduino SAM Boards (32-bits ARM Cortex-M3)" entry. You will now see it change to an "UNINSTALL" button.
Click the "UNINSTALL" button.
A confirmation dialog will now appear. Click the "YES" button.
Wait for the uninstallation to finish.
Select the newest version from the dropdown version menu at the bottom of the "Arduino SAM Boards (32-bits ARM Cortex-M3)" entry.
Click the "INSTALL" button at the bottom of the "Arduino SAM Boards (32-bits ARM Cortex-M3)" entry.
Wait for the installation to finish.
Now try compiling your sketch for the Arduino Due board again. Hopefully this time the error will not occur.
Thanks @ptillisch that answer worked for me, and the code now compiles, although I haven't yet been able to confirm that it will upload into the Due.
KASpencer