VS Arduino
Visual Micro >> Microchip Studio (Atmel Studio 7) >> "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
https://www.visualmicro.com/forums/YaBB.pl?num=1562099272

Message started by Phillip A. Gonzales on Jul 2nd, 2019 at 8:27pm

Title: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Phillip A. Gonzales on Jul 2nd, 2019 at 8:27pm
I am trying to utilize some drivers that AtmelStart has created to enable the debounce functionality on the ATSAMD51 on the Adafruit Metro M4.
From what I understand the way to do this is to edit the registers for the SAMD51, with the most efficient way to do that is to use the drivers.
However, when I include the .h files which come with the drivers they are not detected.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Build_7_2_19.txt ( 7 KB | 2 Downloads )
File_not_found.PNG ( 132 KB | 3 Downloads )

Title: Re: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Visual Micro on Jul 2nd, 2019 at 9:03pm
The AtmelStartConfig is not an Arduino library and does not follow the Arduino 3rd part library specification.

We don't use the micro-api folder anymore it caused too much confusion for people who don't know Arduino. If you remove the micro-api folder then click "vMicro>Show hidden files" you will have all core and lib sources as shortcuts in the project.

Using short cuts ensures that the real arduino library and core rules are followed.

Support for shared projects in Visual Studio is growing and with the new hardware debug in Visual Studio it makes Atmel Studio, which is more difficult to develop, less useful to Visual Micro.


Title: Re: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Phillip A. Gonzales on Jul 3rd, 2019 at 4:20pm

Tim@Visual Micro wrote on Jul 2nd, 2019 at 9:03pm:
The AtmelStartConfig is not an Arduino library and does not follow the Arduino 3rd part library specification.

That makes a lot of sense why the AtmelStartConfig did not work.

However, I appreciate the _micro-apiĀ  as prior to its functionality I often had issues with editing the .h and .cpp file only to find out it was not being included when I ran the .ino.

Even if I move the AtmelStartConfig out of the _micro-api it still is unable to find it at compile time.

Would it be worth switching over to VS w/ VM installed?
Would that maintain the same functionality since AS7 is just a repackaged VS?

*Edit* I am reading your documentation of the AS7 v. VS found at https://www.visualmicro.com/page/User-Guide.aspx?doc=Getting-started-which-IDE.html
Why_.PNG ( 114 KB | 6 Downloads )

Title: Re: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Visual Micro on Jul 3rd, 2019 at 4:52pm
1)
Arduino projects can only use files and folders in and below a sub folder called "\src". You can put code in the project folder, and the \src folder and any folder below the \src folder.


2)
My suggestion would be to make your project work using the Arduino IDE and then open it from Visual Micro. This will force you to sure about what Arduino supports and how a project can be structured.



Title: Re: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Visual Micro on Jul 6th, 2019 at 9:00pm
By the way I forgot to ask if atmel added the Atmel Start Config to your project automatically. If it did then you should remove it for arduino. Normally you are prompted by Visual Micro when it detects Atmel had added invalid sources to the project. If you click Cancel to the prompt then the sources remain and need to be manually deleted.

Title: Re: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Phillip A. Gonzales on Jul 8th, 2019 at 9:52pm
No, I was trying to utilize the Atmel Start Config functionality. I now see that I will not be able to use the Arduino and Atmel Start functionality together.

I think I have found another way to edit the registers w/o the ASConfig files.

I am unsure if that belongs in this thread.

Title: Re: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Visual Micro on Jul 9th, 2019 at 12:00am
Yes sounds like a useful/interesting new thread thanks.

Title: Re: "...fatal error: ...: No such file or directory" Even when "..." file is present in the Solution Tre
Post by Phillip A. Gonzales on Jul 9th, 2019 at 1:23am
Here is the link to the new thread
https://www.visualmicro.com/forums/YaBB.pl?num=1562635239/0#0

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.