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 VS 19 IntelliSense issue with STM32 (Read 1479 times)
Cherokee
Newbies
*
Offline


Posts: 5
Joined: Sep 16th, 2021
VS 19 IntelliSense issue with STM32
Sep 16th, 2021 at 8:39pm
Print Post  
I am having a problem where VS 19 IntelliSense flags a number of library issues even though the code complies with no problem.  I installed Visual Micro 21.09.04.2 for Visual Studio 2017/2019.  The code compiles properly using the Arduino IDE.  This problem just showed up when I upgraded to the VS to version 16.11.3
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: VS 19 IntelliSense issue with STM32
Reply #1 - Sep 17th, 2021 at 1:24pm
Print Post  
Thanks for the report, can you give an example of a Library (URL or name + version) so we can replicate this, and an example of the error generated?
  
Back to top
 
IP Logged
 
Cherokee
Newbies
*
Offline


Posts: 5
Joined: Sep 16th, 2021
Re: VS 19 IntelliSense issue with STM32
Reply #2 - Sep 17th, 2021 at 3:09pm
Print Post  
#include <RF24_config_STM32.h>
#include <nRF24L01_STM32.h>

The code that uses the standard EEPROM and SERIAL libraries are also flagged.

I am still looking for an update on this.  Is there any near term plans to fix this issue?
« Last Edit: Oct 1st, 2021 at 3:03pm by Cherokee »  
Back to top
 
IP Logged
 
Cherokee
Newbies
*
Offline


Posts: 5
Joined: Sep 16th, 2021
Re: VS 19 IntelliSense issue with STM32
Reply #3 - Dec 18th, 2021 at 8:12pm
Print Post  
Intellisense is still not working properly.  I installed the latest versions of the Arduino IDE, Visual Studio 19, and Visual Micro.  Even just a simple program with SERIAL.begin and Serial.println are flagged.  What am I doing wrong?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 19 IntelliSense issue with STM32
Reply #4 - Dec 18th, 2021 at 9:31pm
Print Post  
There must be an incorrect path. Please follow the guide in the yellow box above. So that we can see build props and verbose build output.

Thanks
« Last Edit: Dec 18th, 2021 at 9:40pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Cherokee
Newbies
*
Offline


Posts: 5
Joined: Sep 16th, 2021
Re: VS 19 IntelliSense issue with STM32
Reply #5 - Dec 19th, 2021 at 3:14am
Print Post  
I sent the files via email and attached them to this response. 
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: VS 19 IntelliSense issue with STM32
Reply #6 - Dec 20th, 2021 at 3:13pm
Print Post  
If you remove the 1.9.0 core and update to the the latest 2.x versions (with the new JSON URL below) this should resolve the Intellisense issues for the Serial and EEPROM issues.
Code
Select All
https://github.com/stm32duino/BoardManagerFiles/raw/master/package_stmicroelectronics_index.json 



For the referenced library, the Intellisense all seems correct if the #include <RF24_STM32.h> is added first in the sketch (which includes the #include "RF24_config_STM32.h")
(Assuming I have the correct library from: https://github.com/chacal/rf24_stm32)
  
Back to top
 
IP Logged
 
Cherokee
Newbies
*
Offline


Posts: 5
Joined: Sep 16th, 2021
Re: VS 19 IntelliSense issue with STM32
Reply #7 - Dec 21st, 2021 at 3:20am
Print Post  
Thank you.  I updated the core and most errors went away.  I added  <RF24_STM32.h> first in the sketch.

I am back to the original sketch now and one problem remains with the RF32 library.  Example:

RF24 radio(PB10, PA4);  // CE,CS

PA4 expands to PIN_A4 and PIN_A4 is not defined.

There are only IntelliSense errors.

FIles attached and I will also email them.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint