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....
  • 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
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
Page Index Toggle Pages: 1
Send Topic Print
Re: Imported Arduino project with Atmel start project not working (Read 55 times)

Posts: 6
Re: Imported Arduino project with Atmel start project not working
Jun 3rd, 2021 at 11:32am
Bumping old topic to check if anything has changed in past 2 years.
Problem is pretty much the same. I previously used mpr121 for capacitive touch, but it's ADC has too low of a resolution and I needed a single chip solution that uses best capacitive tech possible. Also mpr121 is no longer produced.
Currently entire project is running on visual micro and i am trying to get qtouch to work in visual micro by manually transferring project that has been made in microchip studio to visual micro. While I could get all dependencies in one place (folder structure is almost identical to arduino, by storing all the files in src folder), it seems like MS is relying to .cproj file to mark all the files that are included in project, then defining them as global dependencies while in visual micro you have to define every  dependency as ''local driver''.
In this example I would have to include "asf.h", as "src/asf.h", which means I would have to go through every file in entire directory and to the same. Is there any better way to transfer microchip studio project to visual micro? Looking for any options possible. Even if it costs me rewriting half of microchip functions using atmel methods. Would be thankful for any input on this.

Back to top
IP Logged
Tim@Visual Micro

Posts: 11074
United Kingdom
Re: Imported Arduino project with Atmel start project not working
Reply #1 - Jun 3rd, 2021 at 2:00pm

Asf is not part of the Arduino framework. The valid folders are root of project \src or any folder below \src. You can add additional include paths for .h files which would then resolve more easily but it can be very confusing to make use of that feature as it sits outside of the way Arduino works and only allows for .h files (not .c or .cpp)

Back to top

Tim Leek
IP Logged
Page Index Toggle Pages: 1
Send Topic Print