VS Arduino
>> >> Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
https://www.visualmicro.com/forums/YaBB.pl?num=1560535944

Message started by TheStallionMang on Jun 14th, 2019 at 6:12pm

Title: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Post by TheStallionMang on Jun 14th, 2019 at 6: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

Title: Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Post by TheStallionMang on Jun 14th, 2019 at 6: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);
}


Title: Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Post by Visual Micro on Jun 14th, 2019 at 6: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.


Title: Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Post by Visual Micro on Jun 16th, 2019 at 9: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".


Title: Re: Teensy 3.6 and Visual Studios / Visual Micro 2017 uint32_t Intellisense Error
Post by TheStallionMang on Jun 19th, 2019 at 6:11pm
That did the trick!  :D 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!

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.