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 Location of Programmer arguments (Read 4655 times)
turnem
Newbies
*
Offline


Posts: 5
Joined: May 17th, 2016
Location of Programmer arguments
Jun 22nd, 2016 at 3:35pm
Print Post  
Hi, I'm trying to program a board with a slightly different version of AVtMega than normally supported. The internal programming option says that I should pass in a -F flag to avrdude, however can't find where any additional arguments are added in AvrStudio.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Location of Programmer arguments
Reply #1 - Jun 22nd, 2016 at 3:43pm
Print Post  
Hi,

I doubt that it will be an atmel property. To answer the question correctly I need to understand if you are referring to standard Arduino usb bootloader upload or a hardware programmer? If a hardware programmer then which one?

Thanks
  
Back to top
IP Logged
 
turnem
Newbies
*
Offline


Posts: 5
Joined: May 17th, 2016
Re: Location of Programmer arguments
Reply #2 - Jun 22nd, 2016 at 3:50pm
Print Post  
Hi,

Using AVR Studio 6.2 with AVRISPMkII. Fails to upload bootloader or using 'Upload using Programmer' as the signature doesn't match. Text prompts to use '-F' option with avrdude to force programming.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Location of Programmer arguments
Reply #3 - Jun 22nd, 2016 at 3:57pm
Print Post  
Okay great 

There are two AVRISP programmers in the Visual Micro programmers list in atmel studio. 

The AVRISP MKII and "Atmel Studio AVRISP MKII". Depending on installed usb drivers only one of the options might work but it is important to say which you are using?

Thanks
  
Back to top
IP Logged
 
turnem
Newbies
*
Offline


Posts: 5
Joined: May 17th, 2016
Re: Location of Programmer arguments
Reply #4 - Jun 22nd, 2016 at 4:08pm
Print Post  
Hi, I just selected AVRISP MkII on the tools -> Visual Micro -> Programmers section., hadn't even noticed the Atmel Studio ....' version. 
If I select Tools -> Device Programming, i only get the option of AVRISP MkII or simulator - and it's the AVRISP Mk II that I normally select for non-Arduino development.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Location of Programmer arguments
Reply #5 - Jun 22nd, 2016 at 5:13pm
Print Post  
Okay the device programming only has effect if you also use the same window for upload so can be ignored.

Because you are using the older version of Visual Micro in AS6.2 you only have one option but it's easy enough.

You haven't said which Arduino ide version you are using so this assumes 1.5+

In [arduinoide]\hardware\arduino\avr is a file called programmers.txt. You can edit with any text editor

See the AVRISP MKII entry as follows:-

Code
Select All
avrispmkii.name=AVRISP mkII
avrispmkii.communication=usb
avrispmkii.protocol=stk500v2
avrispmkii.program.protocol=stk500v2
avrispmkii.program.tool=avrdude
avrispmkii.program.extra_params=-Pusb 



You can add a new entry by duplicating and changing the root id to something else, I just added _F to the end of the id.  Then changed the name slightly and added -F option

Code
Select All
avrispmkii_F.name=AVRISP mkII with -F
avrispmkii_F.communication=usb
avrispmkii_F.protocol=stk500v2
avrispmkii_F.program.protocol=stk500v2
avrispmkii_F.program.tool=avrdude
avrispmkii_F.program.extra_params=-Pusb  -F 



After making changes to platform.txt click "tools>visual micro>reload toolchains" or restart the IDE

You will see the new programmer in the Visual Micro programmers list
« Last Edit: Jun 22nd, 2016 at 5:14pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint