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 IntelliSense Error (Read 1520 times)
TonyZ
Junior Member
**
Offline


Posts: 13
Joined: Jun 6th, 2023
IntelliSense Error
Feb 28th, 2024 at 4:35am
Print Post  
If you start a new solution and past in the following code, you will notice that
Code (C++)
Select All
mbedtls_pk_parse_keyfile(&pk, "private.pem", NULL); 

has error squiggles, even though the code compiles fine. I wonder if this issue is exclusive to my configuration or is common. It would be nice if it could be resolved. 

Code (C++)
Select All
#include <mbedtls/pk.h>

// the setup function runs once when you press reset or power the board
void setup()
{
	Serial.begin(115200);

	mbedtls_pk_context pk;
	mbedtls_pk_init(&pk);
	mbedtls_pk_parse_keyfile(&pk, "private.pem", NULL);
}

// the loop function runs over and over again until power down or reset
void loop()
{

}
 

  

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


Posts: 2708
Joined: Feb 13th, 2019
Re: IntelliSense Error
Reply #1 - Feb 28th, 2024 at 1:05pm
Print Post  
If you add the below include above your current one the error should resolve (as this includes the mbedtls configuration which enables the function):
#include <mbedtls/config.h>

We will look into whether we can automatically resolve this as part of the intellisense system, and it compiles as this is included on the compilation command from the platform.txt in the board package.
  
Back to top
IP Logged
 
TonyZ
Junior Member
**
Offline


Posts: 13
Joined: Jun 6th, 2023
Re: IntelliSense Error
Reply #2 - Feb 28th, 2024 at 5:17pm
Print Post  
Thanks. The issue is resolved using your method.

Looking forward to a future update to solve this issue automatically.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint