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
Hot Topic (More than 8 Replies) Imported Arduino project with Atmel start project not working (Read 4703 times)
Mubashar Ali
Newbies
*
Offline


Posts: 4
Joined: Oct 2nd, 2019
Imported Arduino project with Atmel start project not working
Oct 2nd, 2019 at 8:14pm
Print Post  


I basically combining two projects one built in Atmel Studio 7.0 using atmel start and other is imported from Arduino both projects are working and compiling perfectly independently in solution but when i copy code and files to other project it did not recognize the included file even it is pointing the right file (by right click and click go to implementation) i don't know how to figure out

i also try to edit the *.cppproj , *.cproj and *.xml files but i did not work
also try to link with one another but in wane,
i might be missing something but i don't know what

one reason i think is here, that one project is using C compiler or linker what so ever is called and other project is using Cpp compiler or linker
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Imported Arduino project with Atmel start project not working
Reply #1 - Oct 2nd, 2019 at 8:23pm
Print Post  
Hi, I am not sure you are using any Visual Micro Arduino functionality. Atmel confused things some time ago when they released an Arduino importer. That converts arduino to cpp projects and does not use .ino files. This can diserable for some advanced users but moves away from Arduino.

If you do not have a project_name.ino in a project_name.cppproj in a folder of project_name then you certainly are not using Visual Micro.

For Arduino, we generally recommend vs2017 or 2019 with Visual Micro because the IDEs are more mature and Visual Micro offers more features.

« Last Edit: Oct 2nd, 2019 at 8:26pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Mubashar Ali
Newbies
*
Offline


Posts: 4
Joined: Oct 2nd, 2019
Re: Imported Arduino project with Atmel start project not working
Reply #2 - Oct 2nd, 2019 at 8:28pm
Print Post  
Thanks for replay
i am not using micro importer or module in Atmel Studio 7
i used atmel builtin function to import
and those are .cppproj and .cpp file

the reason i import to AS7 is that i need to use Qtouch with is only accessible through AS and unfortunalyy thay clam that our all atmel start functions are in C language, CPP is not supported yet.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Imported Arduino project with Atmel start project not working
Reply #3 - Oct 2nd, 2019 at 8:34pm
Print Post  
If you follow the guide in yellow at the top of this page we will see if Visual Micro is making an Arduino compile or not. I suspect not, in which case your question is best answered by microchip on their support site.

Even if you are using arduino the import probably is unrelated. Arduino requires sources in the project folder, \src sub folder or any folder structure below the \src folder. To use external code Arduino would use libraries which are different to the atmel libraries.

In a visual micro project we can not prevent atmel studio from adding a Libraries node to the project, however the standard arduino build definitions have no way to use the atmel libraries. Visual Micro does allow .a files to be placed in a \libs folder otherwise you can use .c files but must be quite familiar with arduino code to use .c files.

If you want to create and compile a new simple project "file>new>arduino project" you will see what an arduino build looks like compared to an atmel build.
  
Back to top
WWW  
IP Logged
 
Mubashar Ali
Newbies
*
Offline


Posts: 4
Joined: Oct 2nd, 2019
Re: Imported Arduino project with Atmel start project not working
Reply #4 - Oct 2nd, 2019 at 8:40pm
Print Post  
oh you thing my arduino project is not compiling it is
the problem is not about compling the project

problem is how to link two different projects while one is cpp and other is c

how every i try to go with Visual micro, this way i might get problem solve, i will come back with results
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Imported Arduino project with Atmel start project not working
Reply #5 - Oct 2nd, 2019 at 8:46pm
Print Post  
I think it is a question for the arduino.cc forum or the microchip forum. I can tell you that arduino and visual micro will not use the xml file and all other sourvces that need to be compiled (cpp/h) must fall into the allowed folder paths.

If you want it to work in Visual Micro then it should also work in the arduino ide.

« Last Edit: Oct 2nd, 2019 at 8:47pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Mubashar Ali
Newbies
*
Offline


Posts: 4
Joined: Oct 2nd, 2019
Re: Imported Arduino project with Atmel start project not working
Reply #6 - Oct 2nd, 2019 at 9:28pm
Print Post  
i sorry to say that visual micro arduino code is working perfectly, can any one tell that how i can include atmel start project which is actually Qtouch based, can be imported
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Imported Arduino project with Atmel start project not working
Reply #7 - Oct 3rd, 2019 at 11:24am
Print Post  
Please provide the info requested in the yellow box above. It allows us to see what can't be found. You can see that info but we can't and you have not provided it.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Imported Arduino project with Atmel start project not working
Reply #8 - Jun 3rd, 2021 at 1:01pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint