Hi,
I'm trying to use the ATtiny 10 processor, by programming using an Arduino Uno. A while ago I managed to program the 'Blink' sketch using a Uno, but now I cannot repeat what I did.
When it worked for me I followed the method here: https://make.kosakalab.com/make/electronic-work/arduino_tpi_en/ Now I cannot get it to work any more. I believe I have followed all of the steps correctly, including using an older IDE (1.8.5) as per the instructions, but now when I try to upload the Blink sketch it fails to upload.
Has anyone been able to do this repeatably? Any idea why it worked once but it won't work now?
Hi @peter8337. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from an upload attempt when in verbose mode.
Please do this:
Select File > Preferences from the Arduino IDE menus.
Uncheck the checkbox next to Show verbose output during: 🗹 compilation
Check the checkbox next to Show verbose output during: ☐ upload.
Click the OK button.
Attempt an upload, as you did before.
After the upload fails, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
This copies the full output to the clipboard.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Arduino: 1.8.5 (Windows 10), Board: "ATtiny10 (bitDuino10-arduinoTPI), 8MHz(Internal)"
Archiving built core (caching) in: C:\Users\Peter\AppData\Local\Temp\arduino_cache_818531\core\core_bitDuino10-aTPI_avr_bitDuino10ar-8_clock_internal-8_ca7f8cd086777ce776783657fbe61006.a
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find crtattiny10.o: No such file or directory
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib\libm.a when searching for -lm
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lm
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0\libgcc.a when searching for -lgcc
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lgcc
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib\libm.a when searching for -lm
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lm
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib\libc.a when searching for -lc
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lc
c:/users/peter/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lattiny10
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board ATtiny10 (bitDuino10-arduinoTPI).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi, thanks for your response. Here's the error message as requested.
Regards and thanks for you help.
peter
Hi, thank you for taking the trouble to respond with help. I have looked through the link and tried to follow the Workaround. Unfortunately I do not understand the concept of making it 'portable'. I have read the further link in step 3 and tried to follow but don't really understand how this is any different to what I have been doing. I would be grateful if you could add any further explanation.
Thanks in anticipation.
peter
A normal installation of the Arduino IDE installs boards platforms and libraries to external folders. For example, it is using the avr-gcc compiler it has installed here:
With a portable installation, all the files installed and used by the Arduino IDE are inside the Arduino IDE installation folder. It is called "portable" because some people use this capability to put an Arduino IDE installation on a flash drive so they can use it from any computer.
It might sound kind of complicated, but it is really very simple. All you need to do is create a folder named portable under the Arduino IDE installation folder. That's it, the IDE is now in portable mode.
OK, here you go. Just follow these instructions carefully and you will be successful:
Delete the downloaded arduino-1.8.9-windows.zip file.
Open the unzipped arduino-1.8.9-windows folder in Windows File Explorer.
Right click on an empty area of the arduino-1.8.9-windows folder.
Select "New" from the context menu.
Select "Folder" from the "New" menu.
This will create a new folder with the name New folder under the arduino-1.8.9-windows folder. The New folder folder name should be in an editable state.
Type portable
Press the Enter key.
The folder you created should now be named portable.
Double click on the file arduino.exe that you see in the arduino-1.8.9-windows ffolder.
Wait for the Arduino IDE to start.
Select File > Preferences... from the Arduino IDE menus.
Uncheck the box next to "🗹 Check for updates on startup".
This is done because you must refrain from installing a newer version of the "Arduino AVR Boards" platform, so the notifications of the availability of a newer version would only be annoying.
Type the following URL into the "Additional Boards Manager URLs" field:
Select Tools > Board > Boards Manager from the Arduino IDE menus.
Wait for the updates to finish.
From the list of available boards platforms, find "bitDuino10-aTPI by maris_HY /modified by Kosaka.Lab". Click on it.
Click the Install button.
Wait for the installation to finish.
Click the Close button.
Select Tools > Board > ATtiny10 (bitDuino10-arduinoTPI) from the Arduino IDE menus.
Now try uploading the Blink sketch to your ATtiny10. Hopefully this time the error will not occur.
This portable installation of the Arduino IDE should be used only when working with the "bitDuino10-arduinoTPI" boards platform. Do not ever install or update any other boards platform via the Arduino Boards Manager when using this installation of the Arduino IDE. You still have your previous installation of the Arduino IDE that is not in portable mode. Use that one for all other Arduino boards.
You are also welcome to update the non-portable installation to a modern version of the Arduino IDE instead of that horribly outdated 1.8.5 you are using, but if you like 1.8.5 then you are welcome to keep using it.
Sketch uses 428 bytes (41%) of program storage space. Maximum is 1024 bytes.
Global variables use 0 bytes (0%) of dynamic memory, leaving 32 bytes for local variables. Maximum is 32 bytes.
2022/02/21 15:31:39 open COM12 The system cannot find the file specified.
2022/02/21 15:31:39
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
As far as I can see I have followed your instructions to the letter. I started by creating the 'portable' folder. It now contains files. I tried to share these with you but I don't seem to be able to add attachments to this reply. As far as I can see I have followed all of the steps without success. It is sooo frustrating as I worked for me once but now will no longer work!
Did you select the port of the Uno board you are using as a programmer from the Tools > Port menu in the Arduino IDE?
I think you have followed all my instructions correctly. This is a new problem. Sometimes when we undertake complex endeavors, there are multiple problems stacked on top of each other. Solving one problem only gets you to the next one. This makes it difficult to see that any progress is being made, but I do think this is real progress.
I really don't understand! The guy kosakalab did all of the work. I followed it. It worked just fine before the holidays. I followed all of the steps again. Now it doesn't work any more. That doesn't make sense to me.
Where can I go from here? I tried e-mailing the guy but he doesn't respond. Someone much cleverer that me must surely be able to unravel it all?
Apologies, yes I selected the Uno board port. In my case it is COM 12 as confirmed at the bottom right of the IDE. Under the Tools tab it is there to select as "COM12 Arduino/Genuino Uno)"
Sketch uses 428 bytes (41%) of program storage space. Maximum is 1024 bytes.
Global variables use 0 bytes (0%) of dynamic memory, leaving 32 bytes for local variables. Maximum is 32 bytes.
C:\Users\Peter\Desktop\1.8.9\arduino-1.8.9\portable\packages\bitDuino10-aTPI\tools\avrboy\1.0.1/avrboy -p attiny10 -P COM12 -b 9600 -U C:\Users\Peter\AppData\Local\Temp\arduino_build_379921/Blink.ino.hex
2022/02/23 10:39:46 open COM12 The system cannot find the file specified.
2022/02/23 10:39:46
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.