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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Any code for Uno R4 WiFi won't build (Read 1277 times)
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2807
Joined: Feb 13th, 2019
Re: Any code for Uno R4 WiFi won't build
Reply #20 - Oct 21st, 2025 at 6:54pm
Print Post  
Thanks for confirming, does everything still work in the Arduino IDE?
  
Back to top
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #21 - Oct 21st, 2025 at 7:18pm
Print Post  
Everything works in the Arduino IDE as well as PlatformIO in Visual Code.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2807
Joined: Feb 13th, 2019
Re: Any code for Uno R4 WiFi won't build
Reply #22 - Oct 21st, 2025 at 7:27pm
Print Post  
Thanks, if you clear the cached core and sketch from Arduino IDE manually and recompile is it still the same?

e.g. Delete (or rename) the below folders to ensure it isnt using the cached files from a previous build in Arduino2 IDE:
%LOCALAPPDATA%\arduino\cores
%LOCALAPPDATA%\arduino\sketches

(This is also visible in the Arduino IDE Build output if you want to be more specific)

Thanks for persisting with this!
  
Back to top
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #23 - Oct 21st, 2025 at 7:40pm
Print Post  
If I build while ArduinoIDE is indexing, I get the output in the attached ArduinoIDError2.txt file (output looks like what I was originally getting in VSMicro). If I delete the folders and do it again, I get the output in ArduinoIDEError.txt file (Sometimes), while other times, it builds entirely.
« Last Edit: Oct 21st, 2025 at 7:41pm by Bruiser »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #24 - Oct 21st, 2025 at 7:42pm
Print Post  
Attached the other file mentioned above.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #25 - Oct 21st, 2025 at 9:15pm
Print Post  
Okay. I finally reinstalled everything and am back to the original problem that the board.txt workaround fixes. At least I can keep working my project. I will keep supporting your search for the cause. Let me know what to try when you have anything more.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2807
Joined: Feb 13th, 2019
Re: Any code for Uno R4 WiFi won't build
Reply #26 - Oct 21st, 2025 at 9:37pm
Print Post  
Thanks for the updates and logs.

Just for clarity on the secondary issue, what did you reinstall? (Boards via Board Manager, Visual Micro, Visual Studio etc..) 

We will update when we have something else to try or check on the original -g3 core compilation issue.
  
Back to top
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #27 - Oct 21st, 2025 at 9:41pm
Print Post  
I uninstalled the arduinoIDE, vsmicro, and visual studio. I then resinstalled visual studio, the arduinoIDE, and then vsmicro - in that order. 

After uninstalling, I manually deleted whatever stuff I could find that was left behind. After reinstalling, I noticed that the arduino app and vsmicro seemed to remember some things. I suspect they add stuff to the windows registry, and I really didn't want to go there...
« Last Edit: Oct 21st, 2025 at 9:44pm by Bruiser »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2807
Joined: Feb 13th, 2019
Re: Any code for Uno R4 WiFi won't build
Reply #28 - Oct 22nd, 2025 at 9:57am
Print Post  
Thanks for confirming.

Can you try altering the overrides in the board.txt in vMicro to change the -g0 to the below options just to prove out the best working combination for your environment:
  • -g3 -gdwarf-4
  • -g3 -gdwarf-2
  • -g2


Each of these will still allow debugging to function (potentially without macros at debug time).
  
Back to top
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #29 - Oct 22nd, 2025 at 2:22pm
Print Post  
After trying to build a few times, it eventually works. I should mention that trying to build multiple times is sometimes required to get things to work with the previous overrides. It is also sometimes needed with the ArduinoIDE...

Leads me to think there could be some kind of a timing issue with some parallel processing in the compiler or my hardware? I am using an Intel(R) Core(TM) i9-14900HX (2.20 GHz). I've read that the I9 chip has been problematic in many regards. 

This problem is starting to get interesting.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2807
Joined: Feb 13th, 2019
Re: Any code for Uno R4 WiFi won't build
Reply #30 - Oct 22nd, 2025 at 3:03pm
Print Post  
Quote:
After trying to build a few times, it eventually works. I should mention that trying to build multiple times is sometimes required to get things to work with the previous overrides. It is also sometimes needed with the ArduinoIDE...


Thanks for the update, and glad it eventually builds.  Is it only the -g0 which allows it to build?

So building repeatedly gets e.g. an error the first time, then gets a different one, then builds OK? 

Visual Micro has a setting on the Compiler menu > High Speed Parallel Builds which can be disabled to prevent the compile running the commands in parallel. 

Is your machine overclocked or using XMP which can cause RAM instability? (mdsched.exe allows it to be tested, and does feel like the kind of intermittent instability you are facing from the reports).
  
Back to top
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #31 - Oct 22nd, 2025 at 4:19pm
Print Post  
The original board.txt you gave me works, as well as the -g0 mods.

The building repeatedly description you gave is exactly what happens.

I have had the High Speed Parallel Builds option turned off all along.

My machine has a GPU which is in overclock mode. I turned it off, but it doesn't change anything. I tried forcing to the non-GPU display as well but has no effect. 

I ran the memory checker and got no errors.

At this stage, I may revert back to an older laptop I have for further development if this problem proves to be too annoying. Kind of a pain de-authorizing and re-authorizing your software on the other machine, but I will probably end up going there.

If you have any other ideas, send them my way. Otherwise, I am moving on.

Thanks for the support.
  
Back to top
 
IP Logged
 
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Re: Any code for Uno R4 WiFi won't build
Reply #32 - Oct 22nd, 2025 at 6:31pm
Print Post  
I tried building on my other laptop and everything works (without the board.txt bypass). I chose to use a trial license on it, however, as i think it has been less than 3 months since I moved it to my newer laptop. Using the trial license has probably honked up my ability to move my paid license back to it, however. Please advise...
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2807
Joined: Feb 13th, 2019
Re: Any code for Uno R4 WiFi won't build
Reply #33 - Oct 22nd, 2025 at 10:19pm
Print Post  
Thanks for the update and glad its all working as expected on the other machine.

You should be able to transfer your license as shown in the below guide (it was just over 3 months ago it moved):
Guide: https://www.visualmicro.com/page/Transfer-a-Visual-Micro-License-to-Another-Mach...

Let us know if you have any issues transferring it.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint