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
memset/memcpy error (Read 1004 times)
milesf
Newbies
*
Offline



Posts: 8
UK
memset/memcpy error
Jul 9th, 2018 at 8:31am
 
Hi,
Looks like the general board had a crash and lost the posts?
Just reviving this one anyway.
So the memset/memcpy command creates a red line under the first variable.
I am using the arduino zero native board downloaded from the arduino IDE.  Latest version.
Any more info, let me know.
I dont think I got to read the last post you did on the previous thread.
Thanks
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: memset/memcpy error
Reply #1 - Jul 9th, 2018 at 1:18pm
 
Yes it did thanks for the re-post will add to the next release

Please try this release 1807.9

https://1drv.ms/u/s!AsT00oFsGAmRlrY2QCT2Aq9zUXImpQ

Back to top
 
WWW  
IP Logged
 
milesf
Newbies
*
Offline



Posts: 8
UK
Re: memset/memcpy error
Reply #2 - Jul 12th, 2018 at 11:35am
 
Hi Tim,
Thanks but problem still there.
See attached pic.
Thanks
Back to top
 

memset.png (5 KB | )
memset.png
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: memset/memcpy error
Reply #3 - Jul 12th, 2018 at 12:32pm
 
Hi

In __vm\project_name.vsarduino.h you will see an intellisense fix for memset

Please add a a new text file to the same folder called vs-intellisense-fix.h

Then build.

Then add an overload to vs-intellisense-fix.h that resolves the red squiggles.

Then let me know what it is so I can review/patch all the overloads for intellisense.

The issue is that the core uses _EXTFUNC for many methods which vs doesn't like at the moment

Thanks very much.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: memset/memcpy error
Reply #4 - Jul 13th, 2018 at 7:47pm
 
Hi milesf

Can you please post the code you are using including any definition of variables used when calling memset.

It might be the zero/samd toolchain has changed dramatically in which case we can usually switch to an alternative visual studio engine but this one might be a simple one.

If it's simple I will make the change and put in a new build for you. There are a number of other functions similar to memset that will also need to change so should be a decent improvements.

Thanks

ps: you don't put your prototypes in a function you just paste them into the intellisense-fix file and save it. Visual Micro then uses it in background so it's not real code. However if you answer above questions I will update visual micro save you having to understand this. Thanks
Back to top
« Last Edit: Jul 13th, 2018 at 7:50pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print