recipe.preproc.macros pattern is missing error

OldManNoob
Posts: 12
Joined: Sat Oct 09, 2021 5:09 pm
Answers: 2

recipe.preproc.macros pattern is missing error

Post by OldManNoob »

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.
:cry:
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
by OldManNoob » Mon Nov 07, 2022 5:23 pm
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. :geek:
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 :D
Again, thank you for sticking with me through these last few days - much appreciated.
Go to full post
Last edited by OldManNoob on Sun Nov 06, 2022 6:34 pm, edited 1 time in total.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: recipe.preproc.macros macros is missing error

Post by fpiSTM »

Seems strange as it works fine for all ide. Could you share the full log.
OldManNoob
Posts: 12
Joined: Sat Oct 09, 2021 5:09 pm
Answers: 2

Re: recipe.preproc.macros macros is missing error

Post by OldManNoob »

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 :
  • recipe.preproc.macros pattern is missing
    Error compiling for board Generic STM32F1 series.
That's it.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: recipe.preproc.macros macros is missing error

Post by fpiSTM »

Which core version you installed?
OldManNoob
Posts: 12
Joined: Sat Oct 09, 2021 5:09 pm
Answers: 2

Re: recipe.preproc.macros macros is missing error

Post by OldManNoob »

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
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: recipe.preproc.macros macros is missing error

Post by fpiSTM »

Latest is 2.3.0.
Your errors seems linked to a wrong install.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: recipe.preproc.macros macros is missing error

Post by fpiSTM »

Or maybe you have an old one installed which could explain this issue...
Ensure to properly delete all old install.
OldManNoob
Posts: 12
Joined: Sat Oct 09, 2021 5:09 pm
Answers: 2

Re: recipe.preproc.macros macros is missing error

Post by OldManNoob »

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 still cannot get the IDE 2.0.1 to even commence compilation as it looks for a board to get info from
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 installed
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: recipe.preproc.macros pattern is missing error

Post by fpiSTM »

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.
OldManNoob
Posts: 12
Joined: Sat Oct 09, 2021 5:09 pm
Answers: 2

Re: recipe.preproc.macros pattern is missing error

Post by OldManNoob »

fpiSTM wrote: Sun Nov 06, 2022 7:18 pm 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.
:
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
Post Reply

Return to “PR's bugs and enhancements”