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) Visual Micro Not producing output files (Read 11289 times)
EEnewbie
Newbies
*
Offline


Posts: 7
Location: Atlanta, GA
Joined: Jan 7th, 2014
Visual Micro Not producing output files
Jan 8th, 2014 at 3:14pm
Print Post  
As the title suggests, everytime I compile a project with Atmel Studio using the visual micro plugin, it never makes any output files.

No .hex, no .bin, no .lss, no .map, no .o, no .a, no .elf no nothing!

My Debug folder is completely blank.  How can I upload my files without them?  Are they going somewhere else?

Has anybody else ran into this problem? I have searched my folders for the files but to no avail.  I have also re-downloaded and installed the Arduino 1.5, Atmel Studio, and Visual Micro but still no results.   

Does anybody know a work around? Here is a little info on my setup:

OS: Windows 7 Professional 64-bit
IDE: Atmel Studio 6.1.2730 service pack 2
  
Back to top
 
IP Logged
 
EEnewbie
Newbies
*
Offline


Posts: 7
Location: Atlanta, GA
Joined: Jan 7th, 2014
Re: Visual Micro Not producing output files
Reply #1 - Jan 8th, 2014 at 3:18pm
Print Post  
What I have tried so far:

1. Using empty project workaround: Making a project in Atmel Studio with the same name as the ino file.

- Result: Error message "Unable to set Atmel Studio Cpp project defines"

And compiling errors:
Code
Select All
"C:\Arduino/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 sh.ld" o_due_x_dbg/TestBench.map" -o bg/TestBench.elf" _dbg" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group bg/syscalls_sam3.c.o" bg\LCD_Functions.cpp.o" bg\Startup.cpp.o" bg\Test1.cpp.o" bg\TestBench.cpp.o" " bg/core.a" -Wl,--end-group
core.a(main.cpp.o)* : : In function `main':
main.cpp : undefined reference to `setup'
main.cpp : undefined reference to `loop'
"C:\Arduino/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-objcopy" -O binary bg/TestBench.elf" bg/TestBench.bin"
Binary sketch size: 9988 bytes (used 2% of a 524288 byte maximum) (0.92 secs) 

« Last Edit: Jan 8th, 2014 at 3:24pm by EEnewbie »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Not producing output files
Reply #2 - Jan 8th, 2014 at 3:57pm
Print Post  
Hi there,

Your system looks to be working okay. Hopefully after reading this you will agree.

1)
Visual Micro makes an Arduino compatible compile which, among other things, involves joining all .ino files into a temp .cpp. This is done in a temp folder away from the std Atmel project although this might in the future become optional. To see the temp folder you can switch on "tools>options>visual micro>compiler>always show build folder". Then you will see the output files (.elf etc)

2)
In your second post you mention manually making an Arduino project. This is fine but if you include a main.cpp as you have then things will break. This is because the Arduino core has a main.cpp which is automatically included at compile time. The Arduino main.cpp defines the setup() and loop() methods which are so important to every Arduino compile and should not be overridden.

Hope this helps


« Last Edit: Feb 9th, 2014 at 2:50pm by Tim@Visual Micro »  
Back to top
IP Logged
 
EEnewbie
Newbies
*
Offline


Posts: 7
Location: Atlanta, GA
Joined: Jan 7th, 2014
Re: Visual Micro Not producing output files
Reply #3 - Jan 8th, 2014 at 5:43pm
Print Post  
Thanks for the insight.  After showing build folder I can see the goodies!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Not producing output files
Reply #4 - Jan 8th, 2014 at 6:07pm
Print Post  
Great. 

BTW: CTRL+Click to open the folder in quick view mode.
  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: Visual Micro Not producing output files
Reply #5 - Feb 9th, 2014 at 12:20pm
Print Post  
Dont you mean:
Tools - Options - Visual Micro - Compiler - Show Build Folder.

Also select show all files but I still couldnt get this to work:
CTRL+Click to open the folder in quick view mode. 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Not producing output files
Reply #6 - Feb 9th, 2014 at 2:52pm
Print Post  
Yes thanks I have correct the post, it is in the global options "tools>options>visual micro..."

Can you confirm that after switching on the property and making a compile, in the output window there is a "Build folder: file:///" link?

Thanks
  
Back to top
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: Visual Micro Not producing output files
Reply #7 - Feb 9th, 2014 at 4:22pm
Print Post  
yes its this:
Build folder: file:///C:/Users/Jim/AppData/Local/VMicro/Arduino/Builds/Blink/uno
  
Back to top
 
IP Logged
 
Trek19
Junior Member
**
Offline


Posts: 82
Location: UK
Joined: Dec 2nd, 2013
Re: Visual Micro Not producing output files
Reply #8 - Feb 9th, 2014 at 4:34pm
Print Post  
Just seen what you mean,
:CTRL+Click Build folder: file:/etc/etc to open the folder in quick view mode. 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Not producing output files
Reply #9 - Feb 9th, 2014 at 5:27pm
Print Post  
Great. It's not ideal but I don't know how else to get a link in the output window to open an explorer view.

Hopefully a future release will provide a menu item that can be clicked at any time, not just after a build. A menu item could open a normal explorer window more easily.
« Last Edit: Feb 9th, 2014 at 5:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint