Author Topic: Help uploading with arduino  (Read 7789 times)


  • Newbie
  • *
  • Posts: 1
Help uploading with arduino
« on: August 25, 2018, 05:31:21 pm »
yes, i bought a clone because i didn't want to wait untill october to get started but I did just buy a 5 pack to support the project.  having said that, my issue is this: 

I have been learning/fighting with this ATTINY167  for the last few days.  I learned a lot about fuses, what they are how they work etc and i finally got this thing working to where the PC (windows 7 64 bit sp1) will at least recognize the attiny167.  avrdude can read the information on it, the pc sees it when it logs in and arduino gives the following information when i try to upload the blink sketch and it errors out without finishing the upload:


Code: [Select]
Sketch uses 912 bytes (6%) of program storage space. Maximum is 14844 bytes.
Global variables use 9 bytes of dynamic memory.
Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
connecting: 16% complete
connecting: 22% complete
connecting: 28% complete
connecting: 33% complete
> Device has firmware version 2.0
> Device signature: 0x1e9487
> Available space for user applications: 14970 bytes
> Suggested sleep time between sending pages: 7ms
> Whole page count: 234  page size: 64
> Erase function sleep duration: 1638ms
parsing: 50% complete
> Erasing the memory ...
erasing: 55% complete
erasing: 60% complete
erasing: 65% complete
> Starting to upload ...
>> Flash write error -1 has occured ...
>> Please unplug the device and restart the program.
the sketch code is
Code: [Select]


  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(3, OUTPUT);

// the loop function runs over and over again forever
void loop() {
  digitalWrite(3, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(3, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second

OS:  win 7 64 sp1

mcu:  attiny167



the bootloader is ProBootloaderR2.hex

fuse settings are:  lfuse:w:0xff:m




crystal is a 16mhz crystal. 

fuse settings were found on

arduino version:  1.8.5

Board: digispark pro

programmer AVRISP mkII


have tried different cables and usb ports.  do not currently have another PC to try it on.  any help would be greatly appreciated!  I just want to be able to upload my sketches as I would like to create other projects with this MCU as it is much cheaper than things like an ATMEGA32u4.
« Last Edit: August 25, 2018, 05:36:11 pm by psu007 »