I have an Arduino IDE project that I am porting over to VM (VS2022).
STM32L152RE (using LQFP64 package)
128KB Flash, 32KB SRAM, 4KB EEprom, LCD, USB, ADC, DAC
Without any code changes the project compiles fine, a .bin file is produced no errors. However, VS GUI makes it look like there are issues, I think Intellisense possibly has a problem.
Even some of the header comments at the very top of some of my .INO's have a red dot.
// Digital Pins
#define Pwr_Mon_PIN PA12 // PB signal to CPU
#define Pwr_Out_PIN PA3 // Shutdown
#define ICHG_Out_PIN PA8 // Charge IC disable
#define CHGVL_PIN PA11 // DC input detected via VL pin on battery charge IC
#define ButtEnter_PIN PB0 // Button Enter
#define ButtLeft_PIN PB1 // Button Left
#define ButtUp_PIN PC7 // Button Up
#define ButtRight_PIN PC8 // Button Right
#define ButtDown_PIN PC9 // Button Down
#define CommsLED_PIN PB8 // Comms LED
#define PC13LED_PIN PC13 // PC13 LED (used by bootloader also)
I did notice that before I compiled the OUTPUT window mentioned something about too many Intellisense issues listed.
Screenshot:
Note that ButtEnter_PIN has the red dots under it, and the issue in the wee pop-up.......but further down the same Pin VAR has no issue.
There are a few other PIN vars with the same issue, only some of the digital pins, not all and no other pins or code.
Ian.