Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error (Read 277 times)
TheStallionMang
Junior Member
**
Offline



Posts: 12
Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Jun 14th, 2019 at 7:12pm
 
Hello, 

I know this type of issue has been discussed in here, but I'm just having a hard time finding a relevant post. 

I am getting intellisense errors for uint32_t data types. 

Could someone please help me out?

Teensy 3.6
VM 2017
Arduino 1.6/1.8
Back to top
 
 
IP Logged
 
TheStallionMang
Junior Member
**
Offline



Posts: 12
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #1 - Jun 14th, 2019 at 7:16pm
 
One more thing. 

When I right click uint32_t and click "go to definition"

It brings me to "core_cm4.h"

And this is the code it is pointing to:
Code (C++):
/**
  \brief   ITM Send Character
  \details Transmits a character via the ITM channel 0, and
           \li Just returns when no debugger is connected that has booked the output.
           \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted.
  \param [in]     ch  Character to transmit.
  \returns            Character to transmit.
 */
__STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
{
  if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) &&      /* ITM enabled */
      ((ITM->TER & 1UL               ) != 0UL)   )     /* ITM Port #0 enabled */
  {
    while (ITM->PORT[0U].u32 == 0UL)
    {
      __NOP();
    }
    ITM->PORT[0U].u8 = (uint8_t)ch;
  }
  return (ch);
}

 

Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #2 - Jun 14th, 2019 at 7:25pm
 
Sounds like the intellisense paths need an update for teensy 3.2. Intellisense is not directly related to builds and not easily automatically obtainable from the arduino/teensy defs. Will test next few days.

Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #3 - Jun 16th, 2019 at 10:59pm
 
I tried this again but this time looked for errors in the Errors List. I could see nearly 2000 in VS2017 and 1500 in VS2019. All the false errors related to the underlying core not my own project code.

I then click "vMicro>Show Hidden Files" which is recommended for better F12 GoTo Definition anyway. Then the error list reduced to 3 errors without need to filter the Error List for "Open Documents" or "Build Only".

Back to top
 
WWW  
IP Logged
 
TheStallionMang
Junior Member
**
Offline



Posts: 12
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #4 - Jun 19th, 2019 at 7:11pm
 
That did the trick!  Cheesy When I check the definition now it brings me to "_stdint.h".

I really appreciate your help.  I can't believe you manage this forum on your own (from what I can tell).  I can barely handle supporting a few customers at work.   

Keep up the good work!
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print