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 Can't write code to ATtiny45 with ArduinoISP Programmer (Read 4797 times)
Ari Lotter
Newbies
*
Offline


Posts: 2
Joined: Dec 19th, 2015
Can't write code to ATtiny45 with ArduinoISP Programmer
Dec 19th, 2015 at 7:34pm
Print Post  
Hi! I'm trying to use VisualMicro to write some code onto an attiny. I've selected 'ArduinoISP' as the programmer, and I have a board file for the ATtiny45. If I build & upload, i get 
Code
Select All
Compiling 'TempSensor' for 'ATtiny w/ ATtiny45'
Binary sketch size: 1,772 bytes (used 43% of a 4,096 byte maximum) (0.10 secs)

Uploading to I/O board using 'ArduinoISP'
The uploader returned an error
avrdude: Error: Could not find USBtiny device (0x2341/0x49)
 



If I deselect "Always use programmer for upload", I get this instead.
Code
Select All
Compiling 'TempSensor' for 'ATtiny w/ ATtiny45'
Binary sketch size: 1,772 bytes (used 43% of a 4,096 byte maximum) (0.30 secs)

Uploading to I/O board using 'COM3'
The uploader returned an error
avrdude: invalid baud rate specified '{upload.speed}'
 



The upload works fine in the Arduino IDE.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't write code to ATtiny45 with ArduinoISP Programmer
Reply #1 - Dec 19th, 2015 at 9:02pm
Print Post  
Hi,

Please switch on "visual micro>verbose" then upload and post the output or email to info[at]visualmicro.com.

Also provide the following:-

1) arduino ide version
2) where downloaded attiny cores from?
3) where/how installed attiny cores?
4) if clicking "uploading using programmer" in the arduino ide or using standard upload

Thanks
« Last Edit: Dec 19th, 2015 at 9:03pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Ari Lotter
Newbies
*
Offline


Posts: 2
Joined: Dec 19th, 2015
Re: Can't write code to ATtiny45 with ArduinoISP Programmer
Reply #2 - Dec 20th, 2015 at 12:22am
Print Post  
Hi, I'm running Arduino 1.6.5. I'm using the attiny cores from
Code
Select All
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json 


It's version 1.0.1. I installed them through the "manage boards" window in Visual Micro explorer. I'm using the standard upload in Arduino, and it deploys fine.

Here's my verbose log.
Code
Select All
Compiling 'TempSensor' for 'ATtiny w/ ATtiny45'
Build folder: tiny45
Summary: Header=1 Prototypes=9 Imports=3
Additional Defines:
Architecture Tools: duino5/bin/
Sketchbook: file:\\\C:\Users\arilo\Documents\Arduino
Core Include Paths
Include Path 'C:\Users\arilo\Documents\Arduino\TempSensor'
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino'
Include Path iants\tiny8'
Build Core Paths: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino
Using previously compiled file: empSensor.cpp.o
Using previously compiled file: anchester.cpp.o
rduino5/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=attiny45 -o TempSensor.elf" TempSensor.cpp.o" Manchester.cpp.o" core.a" 5" -lm
rduino5/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 TempSensor.elf" TempSensor.eep"
rduino5/bin/avr-objcopy" -O ihex -R .eeprom TempSensor.elf" TempSensor.hex"
Binary sketch size: 1,772 bytes (used 43% of a 4,096 byte maximum) (0.17 secs)

Uploading to I/O board using 'ArduinoISP'
Uploader started for board ATtiny w/ ATtiny45
Uploader will use programmer name: arduinoisp
duino5\bin\avrdude -arduino5/etc/avrdude.conf" -v -pattiny45 -carduinoisp _attiny45/TempSensor.hex:i"
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is rduino5/etc/avrdude.conf"
         Using Port                    : usb
         Using Programmer              : arduinoisp
avrdude: Error: Could not find USBtiny device (0x2341/0x49)
avrdude done.  Thank you.
Error during upload using programmer
Upload failed
Upload failed
The uploader returned an error
 

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't write code to ATtiny45 with ArduinoISP Programmer
Reply #3 - Dec 20th, 2015 at 8:42pm
Print Post  
Hi,

I have looked into this and first of all you do need to select the "'Arduino as ISP'" programmer in Visual Micro or it will show the 2nd error in your first post.

The attiny definitions could be a bit better and cause some confusion. The definitions declare an "upload.tool" but the definition is incomplete and I think its a mistake. In this case the arduino automatically uses a random programmer and visual micro tries to use the standard upload.tool. (In my case the arduino tried to use the "AVRISP MKII" programmer and not the "Arduino as ISP", so the Arduino Ide failed.

The 'Arduino as ISP' is certainly the correct programmer to use with the attiny boards. I can see in your report that you are not using the 'Arduino as ISP' in Visual Micro but instead a programmer with a similar name 'ArduinoISP'.

So my question to you is do you have both 'ArduinoISP' and 'Arduino as ISP' in the programmers list in Visual Micro?

Thanks

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