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 Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error (Read 1854 times)
TheStallionMang
Junior Member
**
Offline


Posts: 11
Joined: Jul 11th, 2018
Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Jun 14th, 2019 at 6:12pm
Print Post  
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: 11
Joined: Jul 11th, 2018
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #1 - Jun 14th, 2019 at 6:16pm
Print Post  
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++)
Select All
/**
  \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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #2 - Jun 14th, 2019 at 6:25pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #3 - Jun 16th, 2019 at 9:59pm
Print Post  
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: 11
Joined: Jul 11th, 2018
Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Reply #4 - Jun 19th, 2019 at 6:11pm
Print Post  
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 TopicPrint