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 After new version (1128.2225) VS2022 lost information about uint32_t/ malloc etc. (Read 1410 times)
Eukaryota
Newbies
*
Offline


Posts: 3
Joined: Feb 13th, 2023
After new version (1128.2225) VS2022 lost information about uint32_t/ malloc etc.
Feb 13th, 2023 at 1:12pm
Print Post  
Hi,

I have updated VM to newest version and after apdate intelisense in VS2022 (17.4.4) reports error on all included Teensy files. 

For example:
E0020 identifier "uint32_t" is undefined from HardwareSerial.h
E0020 identifier "uint32_t" is undefined from core_pins.h

or E0282 for cos, floor, fabs etc in cmath file

The code compiles correctly but during programing it is very disturbing if you have 1000+ errors all the time

Please help, in the attachment I log the file (as it is requested on the main page)
  

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


Posts: 2377
Joined: Feb 13th, 2019
Re: After new version (1128.2225) VS2022 lost information about uint32_t/ malloc etc.
Reply #1 - Feb 13th, 2023 at 1:28pm
Print Post  
Thanks for the report.

Can you confirm which version of the Teensyduino board package you have installed currently?

Do you get the same issues if you create a new Arduino Project in the current version of Visual Micro? (It will show (Arduino) after the project name in the Solution Explorer in the new format).
  
Back to top
 
IP Logged
 
Eukaryota
Newbies
*
Offline


Posts: 3
Joined: Feb 13th, 2023
Re: After new version (1128.2225) VS2022 lost information about uint32_t/ malloc etc.
Reply #2 - Feb 13th, 2023 at 1:42pm
Print Post  
Teensyduino 1.57

After creating a new project it seems to be working fine. 

I tired define a variable with uint32_t and there was no error.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2377
Joined: Feb 13th, 2019
Re: After new version (1128.2225) VS2022 lost information about uint32_t/ malloc etc.
Reply #3 - Feb 13th, 2023 at 2:38pm
Print Post  
Thanks for confirming the version and that it works in the new project.

The new project intellisense system is greatly improved over the old system, so it may be best to migrate your project.  If you backup the project (to a ZIP, including all SLN and VCXPROJ files), you should then be able to remove the SLN and VCXPROJ files, and then use File > Open Arduino Project and select the ProjectName.ino file, which will recreate it in the new format.

We will look at improving the old intellisense system and update this thread when it is available, which would allow you to continue with the current project if this is preferred.
  
Back to top
 
IP Logged
 
Eukaryota
Newbies
*
Offline


Posts: 3
Joined: Feb 13th, 2023
Re: After new version (1128.2225) VS2022 lost information about uint32_t/ malloc etc.
Reply #4 - Feb 14th, 2023 at 11:10am
Print Post  
Thank you, recreating the project helped.

Now it is working ok.
« Last Edit: Feb 14th, 2023 at 11:11am by Eukaryota »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint