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) ATtiny13a Sketch fails to upload, USBASP programmer (Read 11156 times)
Rando
Junior Member
**
Offline


Posts: 10
Joined: Jul 11th, 2012
ATtiny13a Sketch fails to upload, USBASP programmer
Feb 28th, 2014 at 11:05pm
Print Post  
Hi!,

I have a simple sketch that is working fine (compile and upload) with the 1.05r2 release of the Arduino IDE, but fails to upload under VM, both in the Atmel Studio, and MS Visual Studio 2012.  

I'm sure its a small issue of not exactly having the correct command line args to AVRdude, (missing -B switch?) but I'm not seeing where to see exactly what is being passed. Yes, I have turned on "verbose" in the properties windows. 

It's a simple matter to find the hex file and upload using the same command line as the Arudino IDE, but I am determined to get on the learning curve and really understand Visual Micro...

Any suggestions?

Best,

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #1 - Mar 1st, 2014 at 12:26am
Print Post  
Hi Rando,

It sounds like the 1.0.x system needs a slight tweak, thanks for reporting it.

If you install a zip of Arduino 1.5.5 I think it will work because in 1.5.x we read all of the programmer settings from the Arduino config where as for  1.0.x it is hard coded.

Having said, because you are using a custom 1.0.x tiny core it might be a bit messy but vm might handle it ok

I'll let you know if I see a quicke temp fix
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #2 - Mar 1st, 2014 at 4:01pm
Print Post  
Hi Rando,

I am comparing the Visual Micro output with the Arduino ide and I am struggling to see the difference.

VM
Quote:
d:\arduino\arduino-1.0.5-r2\hardware\tools\avr\bin\avrdude -C"d:\arduino\arduino-1.0.5-r2\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -cusbasp -Pusb kSketch8.hex":i


Arduino Ide
Quote:
D:\Arduino\arduino-1.5.5-r2\arduino-1.5.5-r2/hardware/tools/avr/bin/avrdude nf -v -v -v -v -patmega328p -cusbasp -Pusb 01a.cpp.hex:i 


Would you mind testing the verbose output from a batch file. See if it works with or without the quotes around the .hex file name.

What did you mean about the -b option?

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


Posts: 10
Joined: Jul 11th, 2012
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #3 - Mar 2nd, 2014 at 3:56am
Print Post  
Hi!,

Thanks for the consideration of your prompt reply.

-B bitclock

    Specify the bit clock period for the JTAG interface or the ISP clock (JTAG ICE only). The value is a floating-point number in microseconds. The default value of the JTAG ICE results in about 1 microsecond bit clock period, suitable for target MCUs running at 4 MHz clock and above. Unlike certain parameters in the STK500, the JTAG ICE resets all its parameters to default values when the programming software signs off from the ICE, so for MCUs running at lower clock speeds, this parameter must be specified on the command-line. It can also be set in the configuration file by using the ’default_bitclock’ keyword.

Let me do some testing tomorrow and get back with you.

Best,

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #4 - Mar 2nd, 2014 at 4:42am
Print Post  
Hey that's great thanks. Okay maybe I will need to re-check the arduino source. Look forward to hearing more.

When we solve this, if you understand how the atmel atprogram.exe works I have a question about burning bootloader lockbits and fusebit syntax conversion if you have a mo. It will help with some additional support in the next release for jungo/atmel programmers
  
Back to top
IP Logged
 
Rando
Junior Member
**
Offline


Posts: 10
Joined: Jul 11th, 2012
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #5 - Mar 4th, 2014 at 1:40am
Print Post  
Here's a capture of a working command line sequence from the Arduino IDE 1.05r2

C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny13 -cusbasp -Pusb Blinky_13a.cpp.hex:i 

Nothing magical there, total head scratch for me

I'm wondering if the solution lies comparing this what you posted? Is there a magic switch I can throw in MV to see what args are passed to avrdude. I'm not seeing the -b switch as relevant, sorry my bad.

R.
« Last Edit: Mar 4th, 2014 at 1:42am by Rando »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #6 - Mar 4th, 2014 at 5:24pm
Print Post  
Yes it's strange. 

I have ordered a usbasp currently I only have an mkII and jtag ice. It will take a week or so before it arrives.
  
Back to top
IP Logged
 
Rando
Junior Member
**
Offline


Posts: 10
Joined: Jul 11th, 2012
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #7 - Mar 6th, 2014 at 2:37am
Print Post  
Tim,

That's a good call, when they work they work very well, and you can't beat the price... I did have to try several models before I stumbled on one that worked well with AVRdude, Bascom, etc.

R.
  
Back to top
 
IP Logged
 
Rando
Junior Member
**
Offline


Posts: 10
Joined: Jul 11th, 2012
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #8 - Mar 11th, 2014 at 7:51pm
Print Post  
Tim,

Working with "AVRDudess" today. This (auto-generated) command line works perfectly...

-c usbasp -p t13 -P USB -B 0.5 -U tiny13\Test_Blinky_13a.hex":a 

Best,

R.

« Last Edit: Mar 11th, 2014 at 7:52pm by Rando »  
Back to top
 
IP Logged
 
Rando
Junior Member
**
Offline


Posts: 10
Joined: Jul 11th, 2012
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #9 - May 26th, 2014 at 9:04pm
Print Post  
Tim,

Wondering how your experience with the USBASP programmer worked out. 

Just an FYI, I upgraded my Atmel Studio 6.1, just aux. packages like the AVR compiler for 8 bit controllers and had to reinstall Visual Micro for Atmel Studio, the new April combo installer did not work...

R.
  
Back to top
 
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #10 - May 26th, 2014 at 9:25pm
Print Post  
Hum,

I may be off with my comments, but using different hardware programmers, I couldn't upload program with success with IDE version 1.05 r2. Can't tell exactly where it failed, I don't have access to the notes. Uploading with 1.05 worked.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ATtiny13a Sketch fails to upload, USBASP programmer
Reply #11 - May 26th, 2014 at 9:32pm
Print Post  
Rando, what do you mean by did not work?

Did it raise an error?

Did the installer complete but visual micro did not show in atmel studio?

More info appreciated

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