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
Normal Topic Arduino Mega 2560 project now not compiling (Read 200 times)
Lee Critchlow
Junior Member
**
Offline


Posts: 23
Location: TN
Joined: Jul 19th, 2022
Arduino Mega 2560 project now not compiling
Jan 6th, 2025 at 6:27pm
Print Post  
I have not needed to change this project in quite a while. I now need to a a single line, however, it does not compile, multiple definition of __vector_25, multiple definition of __vector_26,  multiple definition of __vector_23,  multiple definition of digital_pin_to_bit_mask_PGM, multiple definition of digital_pin_to_port_PGM, ...
I removed the new line and I get the same errors.
I Enabled vMicro > Compiler > Show Build Properties and re-compiled with new line restored.
I then discovered that I did not have the latest installed, installed 2.2024.1211.6, recompiled only to find the same errors.
Please find attached a copy of the output. Cry
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Arduino Mega 2560 project now not compiling
Reply #1 - Jan 6th, 2025 at 6:42pm
Print Post  
Thanks for the report.

If you change to the Release Build configuration and recompile, do you get the same errors?
  
Back to top
IP Logged
 
Lee Critchlow
Junior Member
**
Offline


Posts: 23
Location: TN
Joined: Jul 19th, 2022
Re: Arduino Mega 2560 project now not compiling
Reply #2 - Jan 6th, 2025 at 7:00pm
Print Post  
In addition, I've update Arduino IDE to 2.3.4.
Release version -> same errors.
Meanwhile, I used the Arduino IDE by using VS2022 to create a new project, Test_20250106, replaced the src folder with the KeyboardMega_2024_10_01 src folder and replaced the contents of Test_20250106.ino with the contents of  KeyboardMega_2024_10_01.ino. At first it could not find the #include. I update the include to the full path and it compiled and uploaded! Cheesy
vMicro  Undecided
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Arduino Mega 2560 project now not compiling
Reply #3 - Jan 6th, 2025 at 7:23pm
Print Post  
Thanks for the update and detail.

Would it be possible to ZIP the project (without the ".vs" folder) and email it to us on support (at) visualmicro.com?

Could you also include the output from the Arduino IDE with the File > Preferences > Verbose Output During Compile enabled?

It will make investigating the issue much faster, and we will remove the project as soon as the issue is resolved.
« Last Edit: Jan 6th, 2025 at 7:31pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Lee Critchlow
Junior Member
**
Offline


Posts: 23
Location: TN
Joined: Jul 19th, 2022
Re: Arduino Mega 2560 project now not compiling
Reply #4 - Jan 6th, 2025 at 11:22pm
Print Post  
2 files
  

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


Posts: 23
Location: TN
Joined: Jul 19th, 2022
Re: Arduino Mega 2560 project now not compiling
Reply #5 - Jan 6th, 2025 at 11:23pm
Print Post  
second file
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2564
Joined: Feb 13th, 2019
Re: Arduino Mega 2560 project now not compiling
Reply #6 - Jan 7th, 2025 at 9:41am
Print Post  
Thanks for the project.

When you selected the Release Build Configuration, was the Serial Debugger set to "Off"?

I only ask as the errors definitely seem to be a result of the Serial Debugger being enabled.
  
Back to top
IP Logged
 
Lee Critchlow
Junior Member
**
Offline


Posts: 23
Location: TN
Joined: Jul 19th, 2022
Re: Arduino Mega 2560 project now not compiling
Reply #7 - Jan 8th, 2025 at 3:33am
Print Post  
I activated 'Micro board debug options' and set Debug to Off, the program compiles.
Thanks for your help. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint