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 Questions about the ELF file (Read 5415 times)
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Questions about the ELF file
Apr 26th, 2014 at 3:01pm
Print Post  
Hi,

I take frequent backups of my project I call Builds. Sometimes, I want lo load back an older build. To do so, I bring back the whole contents of the working development directory and rebuild/load the project.

I was wondering if there is a better way of doing this, like simply upload the ELF file for the build I want to load. I looked at my backups, and found out that there are no ELF files in there Shocked.

Isn't the ELF file saved in the project/solution ? If not, is it in one specific place and get rewritten each time ? Is there some way of saving the ELF file within the project ? Is there some way of uploading a specific ELF file, if we have it ?

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Questions about the ELF file
Reply #1 - Apr 26th, 2014 at 3:05pm
Print Post  
Hi Giles,

Switch on the "Show Build Folder" option and you will find the elf

http://www.visualmicro.com/page/User-Guide.aspx?doc=Tools-Options-Reference.html

Thanks
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Questions about the ELF file
Reply #2 - Apr 27th, 2014 at 9:02pm
Print Post  
Hi Tim,

the option was already on so I could find out where the .elf file is.

Is there some command somewhere in VisualMicro to ask to upload a specific .elf file to a board ? In fact, it would even be better to do it from outside AtmelStudio. I am thinking about production where the board will be uploaded with the software. It's much better not do it from within AtmelStudio, because that needs to load the proper version and then compile and upload.

I set VisualMicro to verbose and watched the command sent right after Uploading to I/O board using 'COM14' is displayed:

Quote:
"C:\Program Files (x86)\Arduino 1.0\hardware\tools\avr\bin/avrdude" -C"C:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM14 -b57600 -D -V v\UF_TSN_1.hex":i

Surprise, it's an hex file that gets uploaded  Shocked. Am I after the wrong guy ?

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Questions about the ELF file
Reply #3 - Apr 27th, 2014 at 10:00pm
Print Post  
Yep, you can always use the avrdude command line tool to upload your hex files. Visual Micro uses the tools that are available for each board, in this case the ones supplied with the Arduino Ide.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint