Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic why -DARDUINO=108010 ? (Read 113 times)
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 39
Joined: Sep 19th, 2018
why -DARDUINO=108010 ?
Nov 23rd, 2026 at 4:14pm
Print Post  
Hi,
vmicro adds -DARDUINO=108010 for Arduino 2.
However, Arduino 2 and arduino-cli uses -DARDUINO=10607

That's why size of hex is bigger with vmicro.

How Can I fix this? ARDUINO shoud be 10607
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12346
Location: United Kingdom
Joined: Apr 10th, 2010
Re: why -DARDUINO=108010 ?
Reply #1 - Nov 23rd, 2026 at 5:26pm
Print Post  
Thanks for the report. The next release will look for the correct version.

You can add a temporary workaround in your project. Create a board.txt in the project/sketch folder and add this line to it.

runtime.ide.version=10607

A build log would also help determine if that is the cause of extra hex size or not.
« Last Edit: Nov 23rd, 2026 at 5:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12346
Location: United Kingdom
Joined: Apr 10th, 2010
Re: why -DARDUINO=108010 ?
Reply #2 - Nov 29th, 2026 at 4:03am
Print Post  
Thanks again for the report. The LATEST visual micro (.41) here uses the correct arduino version for the compiler. It will be published to the gallery over the next week but it's the same version.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint