recipe.preproc.macros pattern is missing error
-
- Posts: 12
- Joined: Sat Oct 09, 2021 5:09 pm
recipe.preproc.macros pattern is missing error
Hi,
I am getting the following error when attempting to compile for the STMicroelectronics-stm32 library on A.IDE 1.8.19:
recipe.preproc.macros pattern is missing
Error compiling for board Generic STM32F1 series.
This error shows up without any other information when compilation is attempted.
I was using this library as the code I wrote needs printf for HardwareSerial support; it alone worked well at last use (sometime very early in the year) on the IDE1.8.xx.
I have not attempted to revert to an earlier version of the IDE, although I have completely uninstalled and re-installed, and tried various libraries(below).
I also get an error on the much preferred IDE2.0.1, with the following showing without fail:
Request getBoardDetails failed with message: 14 UNAVAILABLE: No connection established when trying to compile - at which point I do not expect to have to be connected!
If anyone can point me at a library that will provide the needed printf support for the STM32F103C8T6 (Blue Pill) I would be really grateful.
Fi
Libraries I have tried (as well as the "(Arduino STM32)(included in sketchbook)" option which will not support printf for HardwareSerial) :
https://raw.githubusercontent.com/stm32 ... index.json,
https://github.com/stm32duino/BoardMana ... index.json
I am getting the following error when attempting to compile for the STMicroelectronics-stm32 library on A.IDE 1.8.19:
recipe.preproc.macros pattern is missing
Error compiling for board Generic STM32F1 series.
This error shows up without any other information when compilation is attempted.
I was using this library as the code I wrote needs printf for HardwareSerial support; it alone worked well at last use (sometime very early in the year) on the IDE1.8.xx.
I have not attempted to revert to an earlier version of the IDE, although I have completely uninstalled and re-installed, and tried various libraries(below).
I also get an error on the much preferred IDE2.0.1, with the following showing without fail:
Request getBoardDetails failed with message: 14 UNAVAILABLE: No connection established when trying to compile - at which point I do not expect to have to be connected!
If anyone can point me at a library that will provide the needed printf support for the STM32F103C8T6 (Blue Pill) I would be really grateful.
Fi
Libraries I have tried (as well as the "(Arduino STM32)(included in sketchbook)" option which will not support printf for HardwareSerial) :
https://raw.githubusercontent.com/stm32 ... index.json,
https://github.com/stm32duino/BoardMana ... index.json
All good now!
I uninstalled the libraries from both platforms. Rebooted.
Then I uninstalled both platforms. Rebooted.
Cleared my PC of ANY and ALL instances of the IDE packages and once again - rebooted.
Then I re-installed 1.8.19 and rebooted. Re-installed the libraries, updating as I went. Here I had my first clue: JAVA was reported corrupt.
So I re-installed JAVA and made sure I had it fully up to date before proceeding.
1.8.19 worked with the STM32 library, so I re-installed the 2.0.1 and YaY!
All good now it seems
Again, thank you for sticking with me through these last few days - much appreciated.
Go to full postI uninstalled the libraries from both platforms. Rebooted.
Then I uninstalled both platforms. Rebooted.
Cleared my PC of ANY and ALL instances of the IDE packages and once again - rebooted.
Then I re-installed 1.8.19 and rebooted. Re-installed the libraries, updating as I went. Here I had my first clue: JAVA was reported corrupt.
So I re-installed JAVA and made sure I had it fully up to date before proceeding.
1.8.19 worked with the STM32 library, so I re-installed the 2.0.1 and YaY!
All good now it seems
Again, thank you for sticking with me through these last few days - much appreciated.
Last edited by OldManNoob on Sun Nov 06, 2022 6:34 pm, edited 1 time in total.
Re: recipe.preproc.macros macros is missing error
Seems strange as it works fine for all ide. Could you share the full log.
-
- Posts: 12
- Joined: Sat Oct 09, 2021 5:09 pm
Re: recipe.preproc.macros macros is missing error
Hi fpiSTM,
Using the library that I'd had success with (afaik - I am a noob really):
https://raw.githubusercontent.com/stm32 ... index.json It has been since altered; quite extensively inasmuch as I can make out.
If by "share the full log" you mean the entire output of the error messages window, with Compiler Warnings set to ALL :
Using the library that I'd had success with (afaik - I am a noob really):
https://raw.githubusercontent.com/stm32 ... index.json It has been since altered; quite extensively inasmuch as I can make out.
If by "share the full log" you mean the entire output of the error messages window, with Compiler Warnings set to ALL :
- recipe.preproc.macros pattern is missing
Error compiling for board Generic STM32F1 series.
Re: recipe.preproc.macros macros is missing error
Which core version you installed?
-
- Posts: 12
- Joined: Sat Oct 09, 2021 5:09 pm
Re: recipe.preproc.macros macros is missing error
If the link https://raw.githubusercontent.com/stm32 ... index.json
does not complete that core install, then I may be missing a step. . ?
That links to ver 2.0.0
does not complete that core install, then I may be missing a step. . ?
That links to ver 2.0.0
Re: recipe.preproc.macros macros is missing error
Latest is 2.3.0.
Your errors seems linked to a wrong install.
Your errors seems linked to a wrong install.
Re: recipe.preproc.macros macros is missing error
Or maybe you have an old one installed which could explain this issue...
Ensure to properly delete all old install.
Ensure to properly delete all old install.
-
- Posts: 12
- Joined: Sat Oct 09, 2021 5:09 pm
Re: recipe.preproc.macros macros is missing error
My bad.
I have indeed 2.3.0 installed:
I have uninstalled all STM libraries, and all mention of STM in any file I can find. I have uninstalled 1.8.19, rebooted (W10 pro (X64) 22H2 ) and re-installed 1.8.19.
I am still getting the identical error recipe.preproc.macros error message with no other info. and I'm stuck for ideas.
I have indeed 2.3.0 installed:
I have uninstalled all STM libraries, and all mention of STM in any file I can find. I have uninstalled 1.8.19, rebooted (W10 pro (X64) 22H2 ) and re-installed 1.8.19.
I am still getting the identical error recipe.preproc.macros error message with no other info. and I'm stuck for ideas.
IDE 2.0.1 now also shows the recipe.preproc.macros error message within a couple of seconds of attempting compilation - it also lists the 2.3.0 STMicroprocessors library as the only STM library installedI still cannot get the IDE 2.0.1 to even commence compilation as it looks for a board to get info from
Re: recipe.preproc.macros pattern is missing error
Seems like install not complete or aborted.
And you have only this message? Try to launch arduino from a console to see if you have more info.
And you have only this message? Try to launch arduino from a console to see if you have more info.
-
- Posts: 12
- Joined: Sat Oct 09, 2021 5:09 pm
Re: recipe.preproc.macros pattern is missing error
:
I have no idea how to do this, so instead I'm uninstalling IDE 2.0.1 and re-installing to see what happens. I have been using 2.0.1 since release and no issues using Teensyduino libraries; it is only with the STM library I'm experiencing issues.
Re-install of 2.0.1: OK
Compile code for Teensy? OK
Compile code for STM32F103C8T6? Nope. Same error