VS Arduino
>> >> Sketch compile fails, involving ISR(WDT_vect), ok on Arduino IDE
https://www.visualmicro.com/forums/YaBB.pl?num=1588677599

Message started by BaiHui on May 5th, 2020 at 11:19am

Title: Sketch compile fails, involving ISR(WDT_vect), ok on Arduino IDE
Post by BaiHui on May 5th, 2020 at 11:19am
Sketch, attached, compiles fine on the Arduino 1.8.12 IDE, but not on Visual Studio 2019 Version 16.5.4, error log attached. Visual micro v1.2020.0321, windows 10, all up to date.
IDE set to Arduino 1.6/1.8, IDE location set to C:\Program Files (x86)\Arduino.

This PC has history, it has previously had Visual Studio 2017 installed with no IDE, it still has 2017 installed. I recently installed IDE 1.8.12 and Visual Studio 2019 and found this problem, can't say if it existed on my old 2017 install.

I have tried uninstalling the Arduino IDE, deleting the arduino15 folder from AppData, then re-installing the Arduino IDE. Also uninstalling visual micro, and reinstalling visual micro after renewing the Arduino IDE, all with PC resets in between.
I initially thought it had some connection with EEPROM.h being multi defined, but am now thinking it's the ISR vector. As I say, it compiles fine on the regular Arduino IDE.
I've run out of ideas, and frankly knowledge.
Cheers
Eric
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=WatchDogTest.ino ( 1 KB | 16 Downloads )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=EEPROM_CompileNOTworking.txt ( 37 KB | 13 Downloads )

Title: Re: Sketch compile fails, involving ISR(WDT_vect), ok on Arduino IDE
Post by Simon Hopkinson on May 5th, 2020 at 11:31am
Thanks for the report, and there has been an updated release which will resolve this issue (20.03.21.11), and it is due to recent improvements to prototype generation.

This is available for download from our Forum Releases Section

Title: Re: Sketch compile fails, involving ISR(WDT_vect), ok on Arduino IDE
Post by BaiHui on May 5th, 2020 at 12:58pm
Thanks for your quick reply and a solution that works.
Great stuff,
Cheers,
Eric

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