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 Re: ISP program settings (Read 1977 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ISP program settings
Jan 19th, 2020 at 2:03pm
Print Post  
We use the same system as the arduino ide so whatever solution you find on the web or on arduino.cc/forum will also work for vm.

if you find you need extra functionality on top of that then feel free to provide detail.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ISP program settings
Reply #1 - Jan 20th, 2020 at 4:46pm
Print Post  
There are a few ways to do this. Let's have a look at the polulu config. Follow the guide in yellow above and try compile upload.

One way might be to add a redefinition of the upload.pattern= in a local project board.txt. 

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ISP program settings
Reply #2 - Jan 20th, 2020 at 9:46pm
Print Post  
Thanks. I think you are using the stk500 programmer.

You could try re-defining the extra_params in a local board.txt. The "vMicro>Add Code" menu will create one for you. Add the following and then click save. Then try.

I can't recall which of the following should work but try them together can't do any harm. Notice we add the serial port because that is what the default programmer def does, then you can add the requested -D

Quote:
stk500.program.extra_params=-P{serial.port} -D
program.extra_params=-P{serial.port} -D


If that doesn't work then you need to find which programmers.txt contains the definition of the "Atmel STK500 development board" programmer. The definition will probably be in a package somewhere below C:\Users\james\AppData\Local\arduino15\packages\

The links in the small preview at the bottom of Board manager show paths to packages if you can find it.

« Last Edit: Jan 20th, 2020 at 9:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ISP program settings
Reply #3 - Jan 21st, 2020 at 8:10pm
Print Post  
The command line that vm and arduino send it entirely redefinable in the programmers.txt and platform.txt files. If expect it is using your arduino avr platform.txt file and that will contain a program.avrdude.pattern. Add the commands you want to that or add your own {variable} then set via board.txt in the project.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: ISP program settings
Reply #4 - Jan 24th, 2020 at 5:29pm
Print Post  
Editing the core platform.txt / programmers.txt files will be the quickest way to try the changes out.

So for the STK500, and the AVR core installed in C:\Users\james\AppData\Local\arduino15\packages\arduino\hardware\avr, it uses the "tools.avrdude.program.pattern" in the platform.txt file.

This command contains {program.extra_params} which comes in from the stk500 definition in programmers.txt in the above folder.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint