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 1282 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
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint