ATTINY programming with ISP connection problem

Hello

I used a Teensy 2++ as ISP programmer on MAC and worked fine.

I haven't used it for a long time and now I have programming errors with Tiny45

> . avrdude: ser_open(): can't open device "usb:14200000": No such file or directory

But:
from terminal:

avrdude -c arduino -p ATtiny45 -P /dev/cu.usbmodem123451 -b 19200 -v

give answers the fuses are correctly read.

Tried without succes:
-Reboot
-Disconnect/reconnect

  • Reinstall USB FDTI driver
  • Delete Arduino15 directory
  • change on preference.txt serial.port=usb:14200000
    serial.port.file=usb:14200000 by 123451

But now what to do ???

You write that avrdude works fine from the terminal
Why do you not falsh ATTINY from terminal too?

Blockquote Why do you not falsh ATTINY from terminal too?

Good idea. But how to do that. I wrote the program with the Arduino IDE.
Thanks

Please show the detailed IDE output for the attiny flashing process

Le croquis utilise 684 octets (16%) de l'espace de stockage de programmes. Le maximum est de 4096 octets.
Les variables globales utilisent 9 octets de mémoire dynamique.
Une erreur est survenue lors du transfert du croquis
avrdude: ser_open(): can't open device "usb:14200000": No such file or directory

It is not a full output.
Please go to the File-Preferences and mark something like "Detail output on compile" and "Detail output on upload" options. And try again

Arduino : 1.8.19 (Mac OS X), TD: 1.56, Carte : "ATtiny, ATtiny45, 1 MHz (internal)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/aa/Documents/Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/aa/Documents/Arduino/libraries -fqbn=attiny:avr:attiny:cpu=attiny45,clock=internal1 -ide-version=10819 -build-path /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062 -warnings=none -build-cache /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_cache_576159 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/aa/Documents/Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/aa/Documents/Arduino/libraries -fqbn=attiny:avr:attiny:cpu=attiny45,clock=internal1 -ide-version=10819 -build-path /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062 -warnings=none -build-cache /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_cache_576159 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Applications/Arduino.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
Using board 'attiny' from platform in folder: /Users/aa/Documents/Arduino/hardware/attiny/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny45 -DF_CPU=1000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/aa/Documents/Arduino/hardware/attiny/avr/variants/tiny8 /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=attiny45 -DF_CPU=1000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/aa/Documents/Arduino/hardware/attiny/avr/variants/tiny8 /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/sketch/Blink.ino.cpp -o /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/preproc/ctags_target_for_gcc_minus_e.cpp
Compilation du croquis...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=attiny45 -DF_CPU=1000000L -DARDUINO=10819 -DARDUINO_attiny -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/aa/Documents/Arduino/hardware/attiny/avr/variants/tiny8 /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/sketch/Blink.ino.cpp -o /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_cache_576159/core/core_attiny_avr_attiny_cpu_attiny45,clock_internal1_51f02b7210b938436b779d1c032618e1.a
Linking everything together...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=attiny45 -o /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/Blink.ino.elf /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/sketch/Blink.ino.cpp.o /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/../arduino_cache_576159/core/core_attiny_avr_attiny_cpu_attiny45,clock_internal1_51f02b7210b938436b779d1c032618e1.a -L/var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062 -lm
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/Blink.ino.elf /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/Blink.ino.eep
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/Blink.ino.elf /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/Blink.ino.hex
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-size -A /var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/Blink.ino.elf
Le croquis utilise 684 octets (16%) de l'espace de stockage de programmes. Le maximum est de 4096 octets.
Les variables globales utilisent 9 octets de mémoire dynamique.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -pattiny45 -cstk500v1 -Pusb:14200000 -b19200 -Uflash:w:/var/folders/vt/2xdshrls38sgc173k5jg108c0000gn/T/arduino_build_803062/Blink.ino.hex:i 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/aa/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb:14200000
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: ser_open(): can't open device "usb:14200000": No such file or directory

avrdude done.  Thank you.

Problem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

Why do you use the different port for flashing

and for reading?

try to use /dev/cu.usbmodem123451 in both cases

By the way.... Do you use standard "Upload" button or "Flash with programmer" option for attiny flashing?

As ISP programmer I'm using a Teensy 2 on the port 123451.
I don't know why this port is used from the arduino. I tried to change the port on the preference.txt file. but without success. 1420000 come again.

To download I use "download from a programmer"

other suggestions ?
Thanks

Where to declare the right port ???
On the IDE I see and select: /dev/cu.usbmodem123451 Serial (Teensy 2++)
Why the IDE goes on the usb:14200000.

Thanks

Sorry, I don't know
I can only suggest flashing ATTINY not from the IDE, but from the command line - since you managed to read the chip in this way

Thanks!
Do you know which commend to send ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.