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]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Any code for Uno R4 WiFi won't build (Read 1278 times)
Bruiser
Junior Member
**
Offline


Posts: 19
Joined: Oct 18th, 2025
Any code for Uno R4 WiFi won't build
Oct 18th, 2025 at 2:36pm
Print Post  
I cannot get any code targeted for the Uno R4 WiFi board to build. All other boards I have work fine. The code also builds fine in the ArduinoIDE 2 for the Uno R4 WiFi board. The build output is attached. 

Note that the output isn't always consistent on subsequent build attempts. Really weird...  I added a second output dump to the attached file.

Also, it doesn't matter what the code is, even a minimal code template fails.

=================
This is really driving me nuts. Any help is appreciated. Thanks!

In the meantime, I am using Visual Code with PlatformIO. That works, but I would really like to get back to VSMicro.
« Last Edit: Oct 19th, 2025 at 11:09pm by Bruiser »  

Please Register or Login to the Forum to see File Attachments
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 #1 - Oct 20th, 2025 at 12:29pm
Print Post  
Thanks for the report, could you also attach the log from the Arduino IDE with the File > Preferences > Verbose Output During "Compile" Enabled?

Can you also try adding a local board.txt to your project (vMicro > Add Code > Add Local Board.txt) and pasting in the attached overrides, and see if this then compiles in Visual Micro?
  

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 #2 - Oct 20th, 2025 at 3:09pm
Print Post  
Thanks for the reply. The board.txt overrides works. Do you still want the Arduino IDE log? If so, does that just involve capturing the content of the output window after compiling, as I don't see anything in the menu about log files?

Also, by disabling DWARF, does that remove debugging support?
« Last Edit: Oct 20th, 2025 at 3:21pm 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 #3 - Oct 20th, 2025 at 3:29pm
Print Post  
Quote:
Do you still want the Arduino IDE log? If so, does that just involve capturing the content of the output window after compiling, as I don't see anything in the menu about log files?


Yes please, and it is just capturing the output, with the additional logging enabled from File > Preferences > Show Verbose Output during "Compile" checked.

The -g0 flag we have changed it to will affect debugging, but once we have reviewed the Arduino IDE log from the same machine hopefully we will be able to understand the true root cause of the issue (currently we cannot replicate the issue on our machines).
  
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 #4 - Oct 20th, 2025 at 4:04pm
Print Post  
If the file attachment button doesnt show, try navigating back to the board index, and navigate to the post again, it should be below the box you type into to reply.
  
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 #5 - Oct 20th, 2025 at 4:09pm
Print Post  
It's not letting me upload the file...


"With the file ArduinoIDEOutputForUnoR4WiFi.txt (0 KB) you exceed the maximum allowed upload directory volume."

I emailed you the file instead...
« Last Edit: Oct 20th, 2025 at 4:16pm by Bruiser »  
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 #6 - Oct 20th, 2025 at 8:23pm
Print Post  
Uploaded the IDE Dump in .doc format this time, as the .txt file wasn't uploading.
« Last Edit: Oct 20th, 2025 at 8:23pm by Bruiser »  

Please Register or Login to the Forum to see File Attachments
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 #7 - Oct 21st, 2025 at 10:12am
Print Post  
Thanks for uploading the log, and we have fixed the issue preventing the .txt file from uploading.

Would you be able to rename the attached file from .txt to .bat and run it on your machine?

If you can attach the output as a text file or attach an image of the console output it would be greatly appreciated.

It will provide further output about the locale and windows version which will help us to identify exactly where the failure is coming from so we can ensure we can validate any fixes against the issue.
« Last Edit: Oct 21st, 2025 at 10:19am by Simon@Visual Micro »  

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 #8 - Oct 21st, 2025 at 1:35pm
Print Post  
I have attached the output I get from the .bat you instructed me to run. 

Note that I am running Windows 11. The .bat output shows Windows 10...
  

Please Register or Login to the Forum to see File Attachments
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 #9 - Oct 21st, 2025 at 3:10pm
Print Post  
Thanks for the log and I believe the windows version shown here represents Win11, just not clearly with "11" as we would expect.

I have updated another machine to this Windows build and the same codepage etc, but still cannot repro to investigate further.

When you have chance would you mind trying:
1) Disable any AntiVirus Real Time Scanning on your machine
2) Open the failing project and run Build > Clean Solution
3) Ensure the -g0 overrides are commented out in the board.txt (just put # at the start of the line)
4) Build the project again
5) Re-enable your AV protection

Let us know if this yields a different result when you have had chance.
  
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 #10 - Oct 21st, 2025 at 3:43pm
Print Post  
Disabling the AntiVirus Real Time Scanning did nothing. This is driving me (us?) crazy!
  
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 #11 - Oct 21st, 2025 at 3:57pm
Print Post  
Agree this is very frustrating, and if I could replicate the issue it would make it easier to isolate the root cause, however it seems very environmental (and a lot of moving parts).

Do the same commands that fail in the build output give the same result when run via CMD? (Example commands from your previous log attached)
  

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 #12 - Oct 21st, 2025 at 4:16pm
Print Post  
Command line doesn't work (see attached). Tried it through the command line tools in Visual Studio as well as outside of it. Tried powershell too.
  

Please Register or Login to the Forum to see File Attachments
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 #13 - Oct 21st, 2025 at 4:30pm
Print Post  
Thanks for trying, and apologies for not noticing the quoting issue and potential for the output folder to exist.

The attached file can be renamed as *.bat, or run the two commands within separately in the same CMD session, this should hopefully give the same error that we see in vMicro....
  

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 #14 - Oct 21st, 2025 at 4:48pm
Print Post  
Here's the output I get. Doesn't show an error (I don't think).
  

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 #15 - Oct 21st, 2025 at 6:07pm
Print Post  
I am now getting a cosistent error, after playing around with the VSMicro debugger options. Tried them all and reset back to off. Now nothing builds (including with the overrides you provided earlier). I think I have something really honked up now...

New output file attached...
  

Please Register or Login to the Forum to see File Attachments
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 #16 - Oct 21st, 2025 at 6:14pm
Print Post  
Quote:
Here's the output I get. Doesn't show an error (I don't think).

Thanks, yes thats showing the command worked without throwing the error we see in vMicro..... which will aid our investigation.

Quote:
I am now getting a cosistent error, after playing around with the VSMicro debugger options. Tried them all and reset back to off. Now nothing builds (including with the overrides you provided earlier). I think I have something really honked up now...

New output file attached...

If you close the command line we used earlier, and then use Build > Clean Solution and then restart VS does the same error still persist?
  
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 #17 - Oct 21st, 2025 at 6:20pm
Print Post  
I still get the same error documented in Output-MicroBuild.txt sent in my previous message.

Is the arm-none-eabi-gcc the correct compiler for the board?
« Last Edit: Oct 21st, 2025 at 6:21pm 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 #18 - Oct 21st, 2025 at 6:32pm
Print Post  
Thanks for confirming, and yes the compiler is defined in the board package as the same one.

Not sure why it has started happening now, however can you try adding the attached overrides to the projects board.txt and then Cleaning and Rebuilding again?

Also does a fresh clean project exhibit the same issues?
  

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 #19 - Oct 21st, 2025 at 6:44pm
Print Post  
Overrides didn't work.
New project has same problem.
This new problem started when I messed around with the VMicro+Debugger+Debug: Off/Serial/Arduino/Hardware and back to Off. Like there is some garbage left somewhere that is not being cleaned up (?).
« Last Edit: Oct 21st, 2025 at 6:45pm 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 #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] 
Send TopicPrint