Failed to install platform: 'ATTinyCore:1.5.2'. 13 INTERNAL: Download failed: performing HEAD request: Head "``https://azduino.com/bin/micronucleus/micronucleus-cli-2.5-azd1b-x86_64-mingw32.zip``": dial tcp 3.218.2.136:443: connectex: No connection could be made because the target machine actively refused it.
Hi @giantkiller. This is due to DrAzzy/SpenceKonde not having performed required maintenance on the azduino.com website they use to host the Micronucleus dependency on the ATTinyCore platform.
Try using the provisional Boards Manager URL I created as a workaround for a previous occurrence of the same problem. I provide instructions for doing that here:
The problem has been reported to DrAzzy/SpenceKonde here:
This means an error occurred when Arduino IDE ran the "post-install script" for the ATTinyCore:micronucleus@2.5-azd1b tool. This is a Windows batch file which has the following content:
@echo off
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
"%~dp0\Drivers\DPinst64.exe"
) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
"%~dp0\Drivers\DPinst64.exe"
) ELSE (
"%~dp0\Drivers\DPinst.exe %ARGS%"
)
The purpose of this batch file is to install the Windows drivers for the Digispark boards. These drivers are located in the Drivers subfolder of the Micronucleus uploader tool installation, at the following path on your hard drive:
If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
If you have already been successfully uploading to your Digispark board, then this means you already have the necessary drivers and the fact that the post-install script failed won't cause any problems.
FQBN: digistump:avr:digispark-tiny
Using board 'digispark-tiny' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5
Using core 'tiny' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5
Detecting libraries used...
Using cached library dependencies for file: C:\Users\phyzx\AppData\Local\arduino\sketches\B989537E2FFEDDED381696957CA77415\sketch\HeelerPodV3.ino.cpp.merged
Generating function prototypes...
Using cached sketch with function prototypes.
Compiling sketch...
Using previously compiled file: C:\Users\phyzx\AppData\Local\arduino\sketches\B989537E2FFEDDED381696957CA77415\sketch\HeelerPodV3.ino.cpp.o
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\phyzx\AppData\Local\arduino\sketches\B989537E2FFEDDED381696957CA77415\core\pins_arduino.c.o
Using precompiled core: C:\Users\phyzx\AppData\Local\arduino\cores\f9a23a9591584bf3e859390c170928cd\core.a
Linking everything together...
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -Os -g -Wl,--gc-sections -mrelax -fmerge-all-constants -mmcu=attiny85 -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.elf" "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415\\sketch\\HeelerPodV3.ino.cpp.o" "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415\\core\\pins_arduino.c.o" "C:\\Users\\phyzx\\AppData\\Local\\arduino\\cores\\f9a23a9591584bf3e859390c170928cd\\core.a" "-LC:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415" -lm
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.elf" "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.eep"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.elf" "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.hex"
cmd /C "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.elf" > "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.lst"
cmd /C "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-nm" --numeric-sort --line-numbers --print-size "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.elf" > "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.map"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.elf"
Sketch uses 2358 bytes (35%) of program storage space. Maximum is 6650 bytes.
Global variables use 57 bytes (11%) of dynamic memory, leaving 455 bytes for local variables. Maximum is 512 bytes.
"C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\tools\micronucleus\2.6/micronucleus" --no-ansi --run --timeout 60 C:\Users\phyzx\AppData\Local\arduino\sketches\B989537E2FFEDDED381696957CA77415/HeelerPodV3.ino.hex
> Please plug in the device (will time out in 60 seconds) ...
> Device is found!
connecting: 16% complete
connecting: 22% complete
connecting: 28% complete
connecting: 33% complete
> Device has firmware version 2.5
> Device signature: 0x1e930b
> Available space for user applications: 6586 bytes
> Suggested sleep time between sending pages: 7ms
> Whole page count: 103 page size: 64
> Erase function sleep duration: 721ms
parsing: 50% complete
> Erasing the memory ...
erasing: 55% complete
erasing: 60% complete
erasing: 65% complete
> Starting to upload ...
writing: 70% complete
writing: 75% complete
writing: 80% complete
> Starting the user app ...
running: 100% complete
>> Micronucleus done. Thank you!
Installed the flashed Digistump and it performs as it should. The initial 6 second pause is gone. A few more code tweaks and I roll into the pcb effort.
I only use the USB to flash. It has no use in the application device.
Thank you all especially Ptillisch and Tuuli in Discord Arduino.
As any experience computer person knows the litmus test is when you get something working, it doesnt truly test out until one powers down and commit to the new process the next day after launching all necessary apps to start the environment. Any failures then can look like BSCP-B)ull S)**t C)omputer P)roblems that need immediate attention because 'It worked before'.
Today I powered everything up, Arduino IDE 2.3.10. Bootburned 4 digistumps then flashed the device application to them. The application device runs exactly as designed. One of the Digistumps was bricked.
I try to avoid making any assumptions about the user's system and level of knowledge in my support efforts. I figure that those who don't need the extra level of detail can always skim over the superfluous content in my responses, while those who do need it will benefit greatly from not being left scratching their head (e.g., "He says there is an AppData folder, but I don't see one???").
Great news! Congratulations on persevering through all the challenges to achieve success in your endeavor.