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) Pololu A-Star / Pololu USB AVR Programmer v2.1 (Read 4230 times)
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Pololu A-Star / Pololu USB AVR Programmer v2.1
Dec 9th, 2018 at 1:04pm
Print Post  
I have just purchased VisualMicro.
I am attempting to burn the bootloader to a Pololu A-Star atmega328PB 8MHz 3.3V.

I receive the following error:
Code
Select All
Burning a new bootloader
This board does not support the burning of a bootloader
Burn failed 



When I try to Build an Arduino project, I get a Pop-Up "Error reading vartians paths".
Code
Select All
Compiling 'READ_PAC_ID_328PB' for 'Pololu A-Star 328PB'
Build Folder: d_breadboard_avr_a-star328PB/Release"
Summary: Header=1 Prototypes=4 Imports=0
Additional Defines:
Api: 1.1811.24-0
Sketch Book: "file:///C:/Users/Robert/Documents/Arduino"
Sketch Include Paths
Core Include Paths
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
   at System.IO.DirectoryInfo..ctor(String path)
   at Visual.Micro.MiroAppAPI.SketchCompiler.CreateFileTimeListXml(String fileType, String sPath, String outputPath)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino._compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp._CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Object oProject, Boolean IsDebugStartCommand, Boolean IsRebuild, Boolean UseGdbIfAvailable) 

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #1 - Dec 9th, 2018 at 4:07pm
Print Post  
Hi,

You have not said how you have installed your hardware.

I have just added this index file and downloaded then build for the 328-PB

https://files.pololu.com/arduino/package_pololu_index.json

Please confirm what you have installed.

You can also switch on vMicro>Compiler>verbose which will show what is happening when the build error happens.

If you use the above json file you should remove your existing installation for the hardware.
« Last Edit: Dec 9th, 2018 at 4:08pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #2 - Dec 9th, 2018 at 4:28pm
Print Post  
Hi Tim,
The hardware was installed via the Arduino IDE.
Being a complete newbie, please would you give me instructions on how to:
1). Add index file.
2). Remove existing installation of the hardware.

This is the Verbose error:
Code
Select All
Burning a new bootloader
Burning bootloader to board 'Pololu A-Star 328PB' using 'STK500 for Pololu A-Star 328PB'
Erase Pattern: "{cmd.path}" "-C{config.path}" "-C+{config.path2}" {erase.verbose} -p{upload.mcu} -c{protocol} {program.extra_params} -B 5 -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m
{runtime.tools.avrdude.path}\bin\avrdude "-C{runtime.tools.avrdude.path}/etc/avrdude.conf" 4.0.2/extra_avrdude.conf" -v -patmega328pb -cstk500 -PCOM17 -B 5 -e -Ulock:w:0xFF:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m
Burn bootloader failed with an exception
	The system cannot find the file specified

Error while burning bootloader.
Burn failed 


Many Thanks
« Last Edit: Dec 9th, 2018 at 4:31pm by Declan1 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #3 - Dec 9th, 2018 at 5:00pm
Print Post  
Hi

We need to stick with making the build work first. Programmers and bootloaders are secondary.

Did you use the index file I posted when you configured the arduino ide or a different one?

Does compile work with the link I posted?

Does burn bootloader work in the arduino ide?
« Last Edit: Dec 9th, 2018 at 5:00pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #4 - Dec 9th, 2018 at 5:06pm
Print Post  
I keep getting:
"Error reading variants path"
  
Back to top
 
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #5 - Dec 9th, 2018 at 5:15pm
Print Post  
I used the index file you posted.
Compile does not work. I get "Error reading variants path".
No, burn bootloader does not work in the arduino ide.

Main reason I purchaed vMicro  Smiley
  
Back to top
 
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #6 - Dec 9th, 2018 at 5:19pm
Print Post  
Error after I close "Error reading variants path" Pop-Up.
Code
Select All
Compiling 'Test_Sunday' for 'Pololu A-Star 328PB'
Build Folder: dboard_avr_a-star328PB/Release"
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines:
Api: 1.1811.24-0
Sketch Book: "file:///C:/Users/Robert/Documents/Arduino"
Sketch Include Paths
Core Include Paths
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
   at System.IO.DirectoryInfo..ctor(String path)
   at Visual.Micro.MiroAppAPI.SketchCompiler.CreateFileTimeListXml(String fileType, String sPath, String outputPath)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino._compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp._CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.OnBeforeCommandEvent(String sGuid, Int32 ID, Object CustomIn, Object CustomOut, Boolean& CancelDefault) 

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #7 - Dec 9th, 2018 at 5:24pm
Print Post  
Visual Micro and Arduino use the definition provided by each board to determine what is possible. If you are unable to burn bootloader that will be because you hardware does not support it.

I explained earlier that you need to supply a verbose output so that we can see what is happening and why

Quote:
You can also switch on vMicro>Compiler>verbose which will show what is happening when the build error happens.


Please post verbose output as .txt file. You have to click the reply button to attach a file in a post.
  
Back to top
WWW  
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #8 - Dec 9th, 2018 at 5:35pm
Print Post  
Hardware does support burn bootloader:
https://www.pololu.com/docs/0J74/5

Build error .txt file attached
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #9 - Dec 9th, 2018 at 5:53pm
Print Post  
Okay but Visual Micro can only support what works in the arduino ide. The issues must be the hardware is not confirming to the arduino specification for burn bootloder

Does build work in the arduino ide?
  
Back to top
WWW  
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #10 - Dec 9th, 2018 at 5:54pm
Print Post  
Yes, I can compile in the Arduino IDE no problem.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #11 - Dec 9th, 2018 at 6:00pm
Print Post  
Please switch on "vMicro>Compiler>Show build properties" along with the "Verbose" then post the output as .txt

Thanks
  
Back to top
WWW  
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #12 - Dec 9th, 2018 at 6:03pm
Print Post  
Build error txt attached
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #13 - Dec 9th, 2018 at 6:17pm
Print Post  
Thanks, I think you need to switch the toolbar to the "Arduino 1.6/1.8" option do not use the (NO IDE) option.

If you don't have "Arduino 1.6/1.8" as an option then you didn't enter your arduino ide path after install. You can do that by clicking any one of the "<Configure IDE Locations> options
  
Back to top
WWW  
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #14 - Dec 9th, 2018 at 6:22pm
Print Post  
Thanks.
I do have "Arduino 1.6/1.8" option.
I will stick to the Arduino IDE.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #15 - Dec 9th, 2018 at 6:24pm
Print Post  
Does a new project build okay for the Uno?
  
Back to top
WWW  
IP Logged
 
Declan1
Junior Member
**
Offline


Posts: 10
Joined: Dec 9th, 2018
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #16 - Dec 9th, 2018 at 6:31pm
Print Post  
Thanks for your help.
I will not use vMicro but stick to Arduino IDE
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #17 - Dec 9th, 2018 at 6:37pm
Print Post  
Okay we will try to work out why it failed for you anyway. It's working for many others and has done for many years. Thanks for the info anyway.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star / Pololu USB AVR Programmer v2.1
Reply #18 - Dec 9th, 2018 at 6:43pm
Print Post  
I reproduced the issue in atmel studio if the (No IDE) option is selected.

It's possible you had it selected and switch to "Arduino 1.6/1.8" on the tool bar or vMicro menu but your project was not updated. I think if you use the vMicro menu to re-select Arduino 1.6/1.8 or switch to another board in the list then back again it will work okay.

The output you posted certainly shows that (No IDE) was selected.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint