Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Blink project for Generic STM32F1 Series wont compile without 'deep search' enabled (Read 755 times)
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Blink project for Generic STM32F1 Series wont compile without 'deep search' enabled
Aug 1st, 2020 at 11:18pm
Print Post  
I am trying to compile a very simple 'blink' program with a STM32 target.  The program compiles OK in VS/VM with 'deep library search' enabled, but fails if it is not enabled.  The same program compiles fine in the Arduino IDE.

I have attached a zip file containing

200801_STM32_Compile_ArduinoIDE.txt - verbose compile in Arduino IDE
200801_STM32_Compile_vMicro_NoDeepLibrarySearch.txt - verbose in VS/VM w/o 'deep search' enabled
200801_STM32_Compile_vMicro_WithDeepLibrarySearch.txt - verbose in VS/VM with 'deep search' enabled

While the 'deep search' option does allow compiles to finish successfully, it takes MUCH longer - 10s of seconds with deep search enabled, vs 4-5 sec without.

Any thoughts?

TIA,

Frank

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blink project for Generic STM32F1 Series wont compile without 'deep search' enabled
Reply #1 - Aug 2nd, 2020 at 2:32am
Print Post  
That is the way that core is designed
  
Back to top
WWW  
IP Logged
 
FrankP
Full Member
***
Offline


Posts: 240
Joined: Oct 19th, 2011
Re: Blink project for Generic STM32F1 Series wont compile without 'deep search' enabled
Reply #2 - Aug 3rd, 2020 at 7:18pm
Print Post  
Tim,

Thanks for clearing that up for me!

So, does the Arduino IDE also always do a deep search?  Or did I have that option enabled and didn't know it?

Frank
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blink project for Generic STM32F1 Series wont compile without 'deep search' enabled
Reply #3 - Aug 3rd, 2020 at 7:24pm
Print Post  
Hi

Yes Arduino IDE always deep searches. 

The problem is that the STM32 uses a pre build rule to create a .cpp file with a list of all the libraries it needs. It relies on the fact that deep search will then scan the .cpp

That particicular core you are using is a single core for many different STM architectures and as such provides a lot of the differences via libraries. Therefore when you build it automatically includes all the libraries it needs.

An alternative if you are using only one architecture is to add to the .ino code an "#include" for one ".h" from each of the libraries that are automatically included when deep search is enbled. Then switch off deep search.
« Last Edit: Aug 3rd, 2020 at 7:27pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint