ATTiny upload 230522

Hello Forum

Running Window 11 and the Arduino IDE 2.0.4 and using

ATtiny85

https://www.sparkfun.com/products/9378

with

a SparkFun Tiny AVR Programmer

https://www.sparkfun.com/products/11801

Expected to upload a sketch using a serial port

but surmise now that the serial port is not used

with the AtTiny85.

Have downloaded usbtinyisp_libusb_1.2.6.0.zip

and installed.

At Preferneces the URL both the

http://drazzy.com/package_drazzy.com_index.json

and the

https://raw.githubusercontent.com/damel … index.json

were added to tthe Additional Board Manager URL textbox alternately.

The 8 Mhz internal clock was and the Programmer was set.

Programmer options tried: Arduino as ASP, ArduinoISP, AVRISP, AVRISPmkll, USBASP,

USBtinyISP USBASP (AtTiny Core), USBASP (AtTiny Core) FAST and USBASP (AtTiny Core) SLOW

have each been tried separately.

https://www.allenpitts.com/electronics/ … 230423.jpg

All of the Programmers return:

A programmer is required to upload

How can I get the IDE to upload to the AtTiny85?

Thanks.

Allen Pitts

Dallas Texas

So, those have a lot that can go wrong:

I would start here https://learn.sparkfun.com/tutorials/ti … ng-further to verify the correct driver version (32 bit, 64 bit, etc) after verifying you have the IC in the correct orientation (dot towards circle cut-out) and wired correctly

Be sure to “run as admin” at each execution in the steps (installing drivers, opening arduino, etc)

You can also try interfacing via AVRdude https://learn.sparkfun.com/tutorials/po … mmand-line (different product, same process)…there are also instructions for re-burning the bootloader on this page

It should be USBtinyISP in Arduino when it is eventually recognized, and if nothing has gone wrong at any of those steps it should be responsive…finally, there’s this workaround https://github.com/SparkfunTechSupport/ … /PGM-11801 too

Programming hardware is fun!

Following the Hookup Guide

https://learn.sparkfun.com/tutorials/ti … ng-further

the Zadig USBTiny Driver was downloaded

the zadig_v2.01.160 folder was created and the zadig.exe exceuted

A dialogue box ‘Driver was installed successfully’ returns.


Then at the Arduino IDE at Tools > ATTinyCore ATtiny25/45/85 (No Bootloader)|

is chosen and the Upload button is clicked. The returned message is:

Sketch uses 464 bytes (5%) of program storage space. Maximum is 8192 bytes.

Global variables use 9 bytes (1%) of dynamic memory, leaving 503 bytes for local variables.

Maximum is 512 bytes.

A programmer is required to upload

So at Tools > ATTinyCore ATtiny/45/85 (Optiboot) is chosen

and the Upload button is clicked. The returned message is:

Sketch uses 464 bytes (6%) of program storage space. Maximum is 7616 bytes.

Global variables use 9 bytes (1%) of dynamic memory, leaving 503 bytes for local variables.

Maximum is 512 bytes.

Failed uploading: no upload port provided

Also tried ATtiny/45/85 (Micronucleus / DigiSpark)

This option compiles and says ‘Uploading’ but runs an

Uploading progress bar for some minutes and then returns

Sketch uses 542 bytes (8%) of program storage space. Maximum is 6586 bytes.

Global variables use 6 bytes (1%) of dynamic memory, leaving 506 bytes for local variables.

Maximum is 512 bytes.

Please plug in the device (will time out in 60 seconds) …

Device search timed out!

Failed uploading: uploading error: exit status 1

Sketch uses 542 bytes (8%) of program storage space. Maximum is 6586 bytes.

Global variables use 6 bytes (1%) of dynamic memory, leaving 506 bytes for local variables. Maximum is 512 bytes.

Please plug in the device (will time out in 60 seconds) …

Device search timed out!

Failed uploading: uploading error: exit status 1

So I think the ATtiny25/45/85 (No Bootloader) option is the one

to use. But in this mode the IDE cannot find the programmer.

(Not sure what the programmer is.) Have tried USBasp (ATTinyCore)

USBasp (ATTinyCore) FAST,for parts running >= 2MHZ and

USBasp (ATTinyCore) SLOW for new or 1 MHZ parts

All the these return

A programmer is required to upload.

Getting close to the end of my rope.

Willing to pay $100 to anyone who can help

me solve this issue. Will work payment thru

Upwork.

Thanks.

Allen Pitts

Dallas Texas

Hello TS-Russell and the SparkFun forum,

For several days have been working

to upload to the ATtiny85 via the Arduino IDE on Window 11.

Attached is a log of the process attempts.

ATTiny Info 230423.txt (10.3 KB)

After several more attempts went back and looked at TS_Russells

post Tue May 23, 2023 12:54 pm

It should be USBtinyISP in Arduino when it is eventually recognized, and if nothing has gone wrong at any of those steps it should be responsive…finally, there’s this workaround https://github.com/SparkfunTechSupport/ … /PGM-11801 too

Following the instuctions at

https://github.com/SparkfunTechSupport/ … around.pdf

the zip file at

usbtiny_signed_8 (1).zip

was downloaded and extracted.

  1. installer_x64.exe was executed.

  2. Go to Device Manager > Other devices > FabISP

But there is no Other devices in the Device Manager or FabISP any where in Device Manager

Have not been able to find a driver called FabISP anywhere.

So FabISP was Googled and at a screen titled ‘FabISP, a fab-able in-system programmer’

which has a link called firmware.zip but this did not install the FabISP to the

Other Devices.

How to install the FabISP to the Other Devices in Device Manager?

Thanks.

Allen Pitts

Hello TS-Russell and the SparkFun forum,

The answer to the problem is found.

Googling the ‘A programmer is required to upload.’ error message a forum

post at the Arduino forum was found:

https://forum.arduino.cc/t/cant-program … 5-2/701346

"The classic Arduino IDE has a feature where the boards platform author can

configure the “Upload” button to work like Sketch > Upload Using Programmer.

This is convenient for boards that don’t have a bootloader, where you always want to do an “Upload Using Programmer”.

DrAzzy has configured the ATTinyCore boards that don’t use a bootloader in this way."

Thanks to TS-Russell for the moral support.

Allen Pitts

Dallas Texas

Excellent! Glad to hear it worked out

This will be a good post for others to find later :smiley: