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
Hot Topic (More than 8 Replies) Fail to build an Arduino IDE working project with Visual Micro (Read 2625 times)
Egol
Junior Member
**
Offline


Posts: 16
Joined: May 17th, 2021
Fail to build an Arduino IDE working project with Visual Micro
May 18th, 2021 at 5:50am
Print Post  
Hello,
I have a working build of a project that is developed and build with Arduino IDE.
I downloaded and install a trial version of Visual Micro in order to test an alternative solution for a better development environment where I can build load and debug my project on the target HW that is based on Arduino Pro (ATmega328p).
My HW programmer is USBasp.
I opened my .ino project with Visual Studio 2019 and Visual Micro, after the project was opened successfully I tried to build it but I have some linking issues:
Quote:
Compiling 'XYZ' for 'ATmega328P (3.3V, 1 MHz, 57600 baud) (Arduino Pro or Pro Mini)'
 

Error linking for board ATmega328P (3.3V, 1 MHz, 57600 baud) (Arduino Pro or Pro Mini)
ccx2FzgG.ltrans0.ltrans.o*: In function aes128_enc_single
Build failed for project 'XYZ'
AESLib.c:63: undefined reference to aes128_init
AESLib.c:64: undefined reference to aes128_enc
 
ccx2FzgG.ltrans0.ltrans.o*: In function bcal_cmac_nextBlock
bcal-cmac.c:109: undefined reference to memxor
 
ccx2FzgG.ltrans0.ltrans.o*: In function bcal_cmac_lastBlock
bcal-cmac.c:136: undefined reference to memxor
bcal-cmac.c:137: undefined reference to memxor
bcal-cmac.c:131: undefined reference to memxor
bcal-cmac.c:132: undefined reference to memxor
ccx2FzgG.ltrans0.ltrans.o*: C:\Projects\XYZ\src\AESLib\bcal-cmac.c:134: more undefined references to memxor follow
 
ccx2FzgG.ltrans0.ltrans.o*: In function aes128_enc_single
AESLib.c:63: undefined reference to aes128_init
AESLib.c:64: undefined reference to aes128_enc
AESLib.c:63: undefined reference to aes128_init
AESLib.c:64: undefined reference to aes128_enc
ccx2FzgG.ltrans0.ltrans.o*: (.progmem.data+0xa5): undefined reference to aes128_init
ccx2FzgG.ltrans0.ltrans.o*: (.progmem.data+0xa7): undefined reference to aes128_enc
ccx2FzgG.ltrans0.ltrans.o*: (.progmem.data+0xa9): undefined reference to aes128_dec
 
collect2.exe*: error: ld returned 1 exit status


Any help and guiding in this initial steps will be appreciate. 
Thanks,
Eyal
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #1 - May 18th, 2021 at 8:52am
Print Post  
Thanks for the report.

Would it be possible to ZIP the entire project (delete the ".vs" folder first), and email it to us for further investigation?
(we will delete this as soon as our investigation is complete)

To understand your environment in detail, please also capture the full build output and attach this as a text file:
1) Build > Clean
2) vMicro > Compiler > Enable Show Build Properties
3) vMicro > Compiler > Enable Verbose
4) Build and Capture all output from "Micro Build"
  
Back to top
 
IP Logged
 
Egol
Junior Member
**
Offline


Posts: 16
Joined: May 17th, 2021
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #2 - May 18th, 2021 at 3:36pm
Print Post  
Hello,
Can you please give me an email address to send this as I prefer it will not be on the forum.
Thanks,
Eyal
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #3 - May 18th, 2021 at 3:50pm
Print Post  
Please email it to sales@visualmicro.com and we will remove it as soon as the investigation is complete.
  
Back to top
 
IP Logged
 
Egol
Junior Member
**
Offline


Posts: 16
Joined: May 17th, 2021
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #4 - May 18th, 2021 at 4:02pm
Print Post  
Sent,
Thanks
  
Back to top
 
IP Logged
 
Anders Eriksson
Junior Member
**
Offline


Posts: 30
Location: Gothenburg, Sweden
Joined: May 31st, 2021
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #5 - Jun 1st, 2021 at 8:34am
Print Post  
Hi,

What is the status on this issue?

Thanks,
Anders
  
Back to top
 
IP Logged
 
Egol
Junior Member
**
Offline


Posts: 16
Joined: May 17th, 2021
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #6 - Jun 1st, 2021 at 8:36am
Print Post  
Hello Anders,
Simon helped me to resolve it and we can close this one, sorry...
  
Back to top
 
IP Logged
 
Anders Eriksson
Junior Member
**
Offline


Posts: 30
Location: Gothenburg, Sweden
Joined: May 31st, 2021
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #7 - Jun 1st, 2021 at 8:47am
Print Post  
Ok!

I am waiting for help on a link error issue, so I checked around.

"Silent news, is good news" Swedish technical proverb!

But I think it can be valuable and good information to new users, about how fast Simon solves any issue, to report when the issue has been fixed.

Thanks,
Anders
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Fail to build an Arduino IDE working project with Visual Micro
Reply #8 - Jun 4th, 2021 at 10:13am
Print Post  
Apologies for not updating this thread as well.

The issue here was that not all source files had been added to the project in the solution explorer in Visual Studio.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint