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


Posts: 8
Location: UK
Joined: Jun 11th, 2018
memset/memcpy error
Jul 9th, 2018 at 7:31am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: memset/memcpy error
Reply #1 - Jul 9th, 2018 at 12:18pm
Print Post  
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
Location: UK
Joined: Jun 11th, 2018
Re: memset/memcpy error
Reply #2 - Jul 12th, 2018 at 10:35am
Print Post  
Hi Tim,
Thanks but problem still there.
See attached pic.
Thanks
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: memset/memcpy error
Reply #3 - Jul 12th, 2018 at 11:32am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: memset/memcpy error
Reply #4 - Jul 13th, 2018 at 6:47pm
Print Post  
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
« Last Edit: Jul 13th, 2018 at 6:50pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint