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
Compiling Issue for Arduino Uno running Hoodloader2 (Read 388 times)
DeDz
Newbies
*
Offline



Posts: 9
Compiling Issue for Arduino Uno running Hoodloader2
May 9th, 2020 at 10:11pm
 
I can't seem to get my installation of Visual Micro to compile any code when compiling for Arduino Uno running Hoodloader2(https://github.com/NicoHood/HoodLoader2). I can compile/upload the code in the default Arduino IDE, but not in Visual Micro. I've tried choosing all relevant options for board libraries (Hoodloader16u2 and Hoodloader2 Uno, the Uno option works properly in Arduino IDE) but no luck. I did create a board.txt file and add "vm.ctags=false" because that did pop up in the output at one point.

Need some help, I hate having to write my code in vmicro but then compile in Arduino IDE! Embarrassed
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10653
United Kingdom
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #1 - May 10th, 2020 at 1:38pm
 
Hi,

There is an update due to be released but you can download it from here.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

If that doesn't help then please follow the guide in yellow above.

Thanks
Back to top
 
WWW  
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #2 - May 11th, 2020 at 7:58pm
 
Hi,

I've tried installing, no luck unfortunately. I have attached the requested .txt
Back to top
 

 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10653
United Kingdom
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #3 - May 11th, 2020 at 8:46pm
 
It would be useful to see the arduino ide verbose output but I suspect the issue is related to an out of date board manager arduino avr package. The avr is also installed below the arduino ide and I guess arduino is using that when visual micro is using the one you have in board manager.

I see you have a custom board.txt and there is a non-arduino hood platform with a modified platform.txt that relies on a later avr toolchain than the one in board mnager.

Solutions

One solution is to use board manager to update your downloaded arduino tool chains.

Another solution is to dump the downloaded arduino board manager package by deleting "C:\Users\monke\AppData\Local\arduino15\packages\arduino". This would mean using board manager to re-download any arduino 32 bit packages that you use but this time don't download the Arduino AVR package.

Restarting Visual Studio or click the Rescan option should then build okay.
Back to top
 
WWW  
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #4 - May 12th, 2020 at 9:41pm
 
Sorry but I don't think I understand. I've tried deleting the file suggested and updating with board manager but I'm not having any luck. Everything seems up to date (vMicro, Arduino, and Hoodloader2)
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10653
United Kingdom
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #5 - May 12th, 2020 at 9:48pm
 
Please delete this folder and restart Visual Studio C:\Users\monke\AppData\Local\arduino15\packages\arduino

If you have a problem after that please provide the build output in yellow above again so we can see the config has changed.
Back to top
« Last Edit: May 12th, 2020 at 9:49pm by Visual Micro »  
WWW  
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #6 - May 12th, 2020 at 11:51pm
 
Okay, so after deleting that folder and restarting this is the output. I do appreciate the time
Back to top
 

 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10653
United Kingdom
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #7 - May 13th, 2020 at 12:36pm
 
What is in your board.txt?

There appears to be an entry for vm.ctags=false. Can you remove this entry and try building again?
Back to top
« Last Edit: May 13th, 2020 at 5:48pm by Simon Hopkinson »  
WWW  
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #8 - May 13th, 2020 at 6:44pm
 
That was actually the only entry in the board.txt file. Here is a the output with that entry removed.
Back to top
 

5-13-2020-Output.txt (181 KB | 2 )
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10653
United Kingdom
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #9 - May 13th, 2020 at 7:06pm
 
Thanks. Please switch off debugging and submit the report again. It's easier to diagnose without debug.
Back to top
 
WWW  
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #10 - May 14th, 2020 at 3:14am
 
Round 2!
Back to top
 
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 246
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #11 - May 14th, 2020 at 11:14am
 
Would it be possible to attach or email over a copy of the sketch in use in this scenario?

I am having trouble replicating this reliably at present (as not ofay with the HoodLoader2 bundle), and not sure which example is best to replicate (from HID Library, or Hoodloader2 Package)
Back to top
 
 
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #12 - May 14th, 2020 at 9:25pm
 
I tried attaching but it seems my solution is too big. So I've linked to a dropbox that contains the code.
Dropbox Link: https://www.dropbox.com/sh/050iuii6e0t6eur/AAD5tseKIoborMdC6SJfC2hJa?dl=0

If you prefer email, should I email this to sales@visualmicro.com? If so does it matter what email I send from?
Back to top
 
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 246
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #13 - May 15th, 2020 at 1:12pm
 
Thanks for the solution, and I have managed to repro this, but only with what appears to be the wrong board (from the output given in compilation).

Using: Arduino 1.8.12, HID Library v1.0 (from Arduino IDE) , and v2.0.5 of the Hoodloader board package, with HID-master lib 2.6.1, which all seems to be the same.
It builds for me on the HoodLoader216u2 board in both Arduino IDE and Visual Micro.
It fails on the Hoodloader2 Uno board in both Arduino IDE and Visual Micro for the same reason, though this is not clear from the output in vMicro at present.

Code:
libraries\HID-master\src/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU. 



Could you attach the log from the Arduino IDE as well, with the Preferences > Show Versbose Output > Compilation option checked, and confirm which board is selected, and IDE version?
Back to top
 
 
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #14 - May 15th, 2020 at 7:08pm
 
So something strange has happened. Previously I was compiling successfully in Arduino IDE using the "Hoodloader2 Uno" option, but now that one is not working. When I switch it to "16u2" the code compiles and uploads fine. So I tried again using vMicro, the "Hoodloader2 Uno"option doesn't work but the "16u2" option not only compiles successfully but uploads. Hmmm.

Would you still like to see the output? At this point I feel bad using up your time and am just happy that I can finally develop in MS Visual Studios properly now.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10653
United Kingdom
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #15 - May 15th, 2020 at 7:33pm
 
Thanks for the update and thought. It helps other users to know about these issues and to understand how to resolve.

I am sure Simon will have some questions or observations for you early next week.

One point of note is that it is possible you were previously using an older hood package in Board Manager. You could try using Arduino IDE Board Manager to install an older version. Then restart Visual Micro.

Back to top
« Last Edit: May 15th, 2020 at 7:33pm by Visual Micro »  
WWW  
IP Logged
 
DeDz
Newbies
*
Offline



Posts: 9
Re: Compiling Issue for Arduino Uno running Hoodloader2
Reply #16 - May 15th, 2020 at 8:05pm
 
Certainly! I'll keep checking and try to help as much as I can. I appreciate the effort from you guys. I was worried this wouldn't get resolved and I'd be stuck.  Wink
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print