0

Can't Compile Blink - recipe.preproc.macros
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't Compile Blink - recipe.preproc.macros

by wiley264 on Fri Jul 26, 2019 11:24 pm

I'm just getting started with a Feather MO and trying to compile the blink sample. I get this error:
Code: Select all | TOGGLE FULL SIZE
recipe.preproc.macros pattern is missing

Error compiling for board Adafruit Feather M0.


Here are the versions of IDE/board packages I have installed:
Image
(Arduino IDE 1.8.9 (Windows Store 1.8.21.0))

Image
(Board Manager with Arduino SAMD 1.8.3 and Adafruit SAMD Boards 1.5.2)

And here's the code and error:
Image

I'm guessing I must be missing something obvious here - anyone know what I should try?

wiley264
 
Posts: 2
Joined: Fri Jul 26, 2019 10:48 pm

Re: Can't Compile Blink - recipe.preproc.macros

by franklin97355 on Sat Jul 27, 2019 1:19 am

You probably have some corrupt files. Start by deleting the Arduino15 directory then, if that does not help remove and reinstall the IDE. Let us know what you find.

franklin97355
 
Posts: 21071
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Can't Compile Blink - recipe.preproc.macros

by wiley264 on Sat Jul 27, 2019 1:58 am

As far as I can tell, the Windows Store version of the Arduino IDE puts its files in %UserProfile%\Documents\ArduinoData instead of Arduino15. I deleted that, re-added the Adafruit board package URL, reinstalled the two SAMD board packages, and now it works. The only thing I did differently the second time is that I waited for the Arduino SAMD package to complete before starting the Adafruit SAMD install - the first time I clicked install on both and let the IDE queue it up.

Thanks!

wiley264
 
Posts: 2
Joined: Fri Jul 26, 2019 10:48 pm

Re: Can't Compile Blink - recipe.preproc.macros

by XRAD on Wed Jul 31, 2019 4:02 pm

for future downloads of Arduino IDE try:

https://www.arduino.cc/

Has the most updated files and plenty of tutorials......

XRAD
 
Posts: 497
Joined: Sat Nov 19, 2016 3:28 pm

Re: Can't Compile Blink - recipe.preproc.macros

by rwbaugher on Mon Aug 19, 2019 9:08 pm

Like others in this forum, I got the message "recipe.preproc.macros pattern is missing
Error compiling for board Adafruit Feather M0." Everything was working normally this morning, then kicked this error this afternoon.

I have deleted Arduino using the control panel (v 1.8.9) and downloaded and installed v 1.8.8 and get the same error. I see that I have both an Arduino Data folder under Documents and an Arduino 15 folder under C:\Users\xxx\AppData\Local. What do I need to do to fix my problem?

Thanks.

rwbaugher
 
Posts: 5
Joined: Mon Aug 31, 2015 3:24 pm

Re: Can't Compile Blink - recipe.preproc.macros

by franklin97355 on Tue Aug 20, 2019 12:06 am

The arduino15 folder is usually the culprit in these types of problem.

franklin97355
 
Posts: 21071
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Can't Compile Blink - recipe.preproc.macros

by rwbaugher on Tue Aug 20, 2019 4:37 pm

Thanks, that fixed the issue. I uninstalled and reinstalled the IDE, deleted folder Arduino 15 and added back the necessary boards and libraries without losing any of my code.

rwbaugher
 
Posts: 5
Joined: Mon Aug 31, 2015 3:24 pm

Please be positive and constructive with your questions and comments.