Problems in Windows 11?

I am receiving random errors when I compile to Digistump. In a lot of forums Wins 11 seems to be the central issue. Random reboots, browser, tabs, video crashes.

I have to press compile or compile and upload many times to get error free.

I just my last upload and now the system compiles and waits for digistump plugin. Nothing is responding.

My post here is because of the fustration to do something taht used to work and now has turned into a crashing nightmare. I thought it was my machine but there are 1000's of crandom crashes across the internet in all kinds of forums. People are very angry at not being productive.

Plug n play has never left the plug n poop arena.

Hi @giantkiller.

I'm going to ask you to provide the full verbose output from a compilation during which the error occurs.


:red_exclamation_mark: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Open the sketch in Arduino IDE.
  2. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  3. Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Select Sketch > Verify/Compile from the Arduino IDE menus.
  6. Wait for the compilation to fail.
  7. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a reply here on this forum topic by clicking the "Reply" button.
  9. Click the <CODE/> 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.
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to publish the post.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here.

Click here for attachment instructions

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a reply here on this forum topic by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer toolbar:

    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

Please provide the text from the output panel when this fault occurs.

Please provide links to some of those reports you found.

Here are my latest attempts.

//**************************************************************************************
// Digistump by Digispark or Arduino MEGA2560 Digispark development platform
//  HeelerPod.ino       Active High
// unplug and plug, press upload and read console prompt to insert digispark
// Bitrate 57600
//**************************************************************************************
/*
This for Interrupt driven code!
The Arduino sketch begins with the execution of C++ int main() function in the background and intializes many modules including Timer-0. This is the reason for the compilation error in your sketch of post #1.
What I have done in post #40 is that I have bypassed that backgorund C++ int main() function; instead, I have invoked my own int main() function so that Timer-0 is no more initialized with values that conflict with the purpose of your sketch of post #1.
Now, the millis() function will not work which is no good. It is better to re-design your sketch using Timer-2 and let the background C++ int main() function run and millis() function work.
*/

#define digispark true // !!!!!!!!!!!!!!!!!!!!!!   Remember to match processor !!!!!!!!!!!!!!!!!!!
#define flicker 0 // Led by default. Long LOW is Reset. Nay nay! Do not use
#define mosfet 1
#define msb 2
#define lsb 3
#define test 4 // Test: Sets off timing to 5 per second, pin 1 has an LED tide high
//define reset 5

int delayval = 11738; // microseconds Brain LED 40hz half cycle not specific
//int delayval = 59; // microseconds StunGun 6.5khz half cycle not specific
//int delayval = 23; // microseconds Ringing 21.4khz half cycle not specific
//int delayval = 14; // microseconds Ringing 32.4khz half cycle not specific
//The instruction cycle time has an effect on the timing.
int ontime = 500; // milliseconds Pod OnTime = 0.5 second
int waitinterval = 900; // wait is in milliseconds. 900 seconds equal 15 minutes
//**********************************************************************
//**********************************************************************
//** Use the Minutes amount to control all time  variants 
//**********************************************************************
//**********************************************************************
// minute variables for short testing, otherwise should be 1
// 1=60, .75=45, .50=30, .25=15, .125=7.5, .0625=3.75, .03125=1.5, .012625 =.75, .01225=.5, .006125=.25, .0030625=.125, .00153125=.06125
float minutes = .006125;
float seconds = minutes * 60;
float milliseconds = seconds * 1000;
//**********************************************************************
// Print a string
//**********************************************************************
void printstr(String param, String newline){
  if(!digispark){
    Serial.print(param);
    if(newline == "nl"){Serial.println("");}
  }
}
//**********************************************************************
// The setup routine runs once when you press reset:
//**********************************************************************
void PodTimerSetup() {
    
  Serial.begin(57600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  //Serial.println("Test started!");
  // 
  //pinMode(0, INPUT); //Avoid for the Mega2560
  //pinMode(1, OUTPUT); //Avoid for the Mega2560
  pinMode(flicker, OUTPUT); // Test Delay offtime
  pinMode(mosfet, OUTPUT); // Mosfet shield 1
  pinMode(lsb, INPUT_PULLUP); //LSB Time interval switches 3
  pinMode(msb, INPUT_PULLUP); //MSB Time interval switches 2
  pinMode(test, INPUT_PULLUP); //High speed output endable
  
  if(!digispark){
    printstr("","nl");
    printstr("********************************************************************************************************", "nl");
    printstr("Operation begin", "nl");
    printstr("**************************", "nl");
  }
  intervalsetting();
  poweron();
}
//**********************************************************************
// the loop routine runs over and over again forever:
//**********************************************************************
void mainloop() {
  while (1){
  //emppulse();
  }
}
//**********************************************************************
// Single pulse routine
//**********************************************************************
void emppulse(){
  float offtime = 0;
  digitalWrite(mosfet, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(ontime); // 500 milliseconds
  digitalWrite(mosfet, LOW);    // turn the LED off by making the voltage LOW
  // digitalread == low when development platform switch is ON.
  // digitalread == low when digispark heeler pod jumper is connecting the 2 pins, i.e. Pin is low.
  if(digitalRead(test) == HIGH){ //switch off
    offtime = timingswitches();
    if(!digispark){
      printstr("Standard timing sequence selected", "nl"); // Test mode short interval
      printstr("After: ", "");
      printstr(String(offtime), "");
      printstr(" Divide this by ~110 for seconds", "nl");
    }
  }
  else{
    offtime = timingswitches();
    if(!digispark){
      printstr("TEST sequence selected: ", "");
      printstr(" offtime: ", "");
      printstr(String(offtime), "nl");
    }
  } 
  // ===============================================================
  delay(offtime);  // unsigned Long millseconds 900,000 = 15 minutes, wait till next pulse, production
  // OR for debugging
  //for(int i=0; i < 4000; i++){digitalWrite(flicker, LOW);printstr("countdown: ","");printstr(String(i),"nl");digitalWrite(flicker, HIGH);}
  // ===============================================================
}
//**********************************************************************
// Read switches for offtime delays
//**********************************************************************
int timingswitches() {
  int switchcount = (digitalRead(msb) * 2 + digitalRead(lsb)) + 1; //msb, lsb
  if(!digispark){
    printstr("switchcount = [msb=dr2 + lsb=dr3] +1, test=dr0", "nl");
    printstr(String(switchcount), "");
    printstr(" = [", "");
    printstr(String(digitalRead(msb)), "");
    printstr(", ", "");
    printstr(String(digitalRead(lsb)), "");
    printstr("], ", "");
    printstr(String(digitalRead(test)),"");
    printstr(", timingswitches()=", "");
    printstr(String(milliseconds),"nl");
  }
  //   900 seconds, 900,000 milliseconds = 15 minutes
  int tempinterval = 0; // default base setting
  tempinterval = switchcount * milliseconds;
  return tempinterval; 
}
//**********************************************************************
// Sets milliseconds by the minutes varialble
//**********************************************************************
void intervalsetting(){
if(!digispark){printstr("This is not Digispark", "nl");}
minutes = .25; //default value for groups of 15 minutes
  if(digitalRead(test) == LOW){ // Test mode short interval
    minutes = .006125; //short value for high speed test
    if(!digispark){printstr("Short interval test initiated", "nl");}
    }
  else {
    if(!digispark){
      //val = digitalRead(test);
      if(digitalRead(test) == HIGH) {
        printstr("Standard time setting initiated: dr5=", "");
        printstr(String(digitalRead(test)), "nl");
      }
    }
  }
  seconds = minutes * 60;
  milliseconds = seconds * 1000;
  if(!digispark){
    printstr("milliseconds=", "");
    printstr(String(milliseconds), "nl");
  }
}
//**********************************************************************
// One time power setup routine as a power on indicator
//**********************************************************************
void poweron(){
  if(!digispark){printstr("**************************", "nl");}
  int pwsave = milliseconds;
  milliseconds = .005;
  //timingswitches();
  for(int i = 0; i<3; i++){
    if(!digispark){printstr("Power on pulse", "nl");}
    emppulse();
  }
  milliseconds = pwsave;
  //timingswitches();
  if(!digispark){
    printstr("Power on sequence finished", "nl");
    printstr("**************************", "nl");
    printstr("Normal operation will begin", "nl");
    printstr("", "nl");
  }
}
//**********************************************************************
void led(){
  //digitalWrite(1, LOW);   // turn the LED off (HIGH is the voltage level)
  //digitalWrite(3, LOW);   // turn the LED off (HIGH is the voltage level)
  //digitalWrite(4, LOW);   // turn the LED off (HIGH is the voltage level)
  //digitalWrite(5, LOW);   // turn the LED off (HIGH is the voltage level)
  //delay(2000); // in Milliseconds. There are 1000 in a second
  //digitalWrite(1, HIGH);   // turn the LED on (HIGH is the voltage level)
  //digitalWrite(3, HIGH);   // turn the LED on (HIGH is the voltage level)
  //digitalWrite(4, HIGH);   // turn the LED on (HIGH is the voltage level)
  //digitalWrite(5, HIGH);   // turn the LED on (HIGH is the voltage level)
  //delay(500); // in Milliseconds. There are 1000 in a second
}
//**********************************************************************
void stun(){}

#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>

int intr_count = 0;
int sec = 0;

ISR(TIMER0_OVF_vect)  //Interrupt vector for Timer0
{
   if( intr_count == 63 )  //waiting for 63 because to get 1 sec delay
   {
      PORTB ^= (1 << PB1);  //toggling the LED
      intr_count = 0;       //making intr_count=0 to repeat the count
      ++sec;
   } else intr_count++;  //incrementing c upto 63
}

void timer_setup() {
   DDRB |= (1 << PB1);  // set PB1 as output(LED)
   TCCR0A = 0x00;       //Normal mode
   TCCR0B = 0x00;
   TCCR0B |= (1 << CS00) | (1 << CS02);  //prescaling with 1024
   sei();                                //enabling global interrupt
   TCNT0 = 0;
   TIMSK |= (1 << TOIE0);  //enabling timer0 interrupt
   PORTB |= (1 << PB1);
}

int main() {
    PodTimerSetup();
    timer_setup();
    mainloop();
}

void setup(){} // Null for Interrupt code. Gotten from my posts in Arduino forum

void loop(){} // Null for Interrupt code Gotten from my posts in Arduino forum

Compile #1 worked.

Compile #2 produced this.

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\digistump\hardware\avr\1.7.5\cores\tiny\wiring.c: In function 'delay':
lto-wrapper.exe: fatal error: C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/users/phyzx/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: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1

Compile #3 produced this:

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
lto1.exe: internal compiler error: invalid resolution in the resolution file
Please submit a full bug report,
with preprocessed source if appropriate.
See https://gcc.gnu.org/bugs/ for instructions.
lto-wrapper.exe: fatal error: C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/users/phyzx/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: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1

Compile #4 worked

Compile and upload #1: Compile worked but upload hangs when I plug the Digispark in.

You forgot the code block. You can still edit your reply and fix it.

Have you tried using a different computer?

Interesting. Please perform this experiment and then report your results:

  1. Select File > New Sketch from the Arduino IDE menus.
    Arduino IDE will open a new sketch window, which contains a minimal sketch code.
  2. Compile the sketch, just as you did when you encountered the error before.
  3. If the compilation is successful, repeat several additional times.
    ā“˜ This is necessary due to the unfortunate intermittent nature of the fault you encountered.

Did any of the compilations of that minimal sketch fail? If so, please provide the output from that compilation, just like you did in your previous reply.

The goal of this experiment is to determine whether the fault is in some way specific to your more complex real sketch, or universal. If the fault only occurs when compiling your real sketch, then we should try to understand if there is something special about that sketch which causes the fault. Conversely, if the fault occurs even with the minimal sketch, then we can disregard your real sketch as a factor.

This is the Blink sketch on this same Windows 11 machine.

Now I also have a support situation with Bleeping Computer.

At first I blamed the hardware, then driver problems, malware, all the associated enemies.

Blender would crash, Firefox would crash, The pc would crash. Random crashes all the time.

I still have random crashes. I can not install Firefox due to file corruption errors. I believe it is due to a folder entry. In Bleeping Computer we have completely scrubbed this Windows 11 install with all their efforts. No problems reported.

I could try a different machine but its Windows 10 and NO I am not updating. I would be fool as I have too many assets linked to that box. It works. I can try Arduino IDE on there tomorrow.

Tonight I leave the machine on in the MSI BIOS menu. No windows loaded. I watch for a crash there. My suspicions are it wont. But if it does then there is a glitchy hardware problem. But the reboots are so random.

I mention the other softwares because that is where the problems started showing up. And guess what? All those forums have mysterious problems too. All repositories are experiencing faults which points me to Windows 11. The prior week Tuesday update did fix the browser crashes though.

My Arduino IDE is upto date and there are no update messages for libraries.

FQBN: digistump:avr:digispark-tinyUsing board 'digispark-tiny' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5Using core 'tiny' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5

Detecting libraries used...C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=16000000L -DSERIAL_BUFFER_SIZE= -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DDIGISTUMPCORE="1.7.5" -DDIGISTUMPCORE_MAJOR=1UL -DDIGISTUMPCORE_MINOR=7UL -DDIGISTUMPCORE_PATCH=5UL -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\variants\digispark C:\Users\phyzx\AppData\Local\arduino\sketches\41B623F6172E57586D63CEC3C473DE79\sketch\Blink.ino.cpp.merged -o nul -MMD -MF C:\Users\phyzx\AppData\Local\arduino\sketches\41B623F6172E57586D63CEC3C473DE79\sketch\Blink.ino.cpp.merged.libsdetect.dGenerating function prototypes...C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=16000000L -DSERIAL_BUFFER_SIZE= -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DDIGISTUMPCORE="1.7.5" -DDIGISTUMPCORE_MAJOR=1UL -DDIGISTUMPCORE_MINOR=7UL -DDIGISTUMPCORE_PATCH=5UL -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\variants\digispark C:\Users\phyzx\AppData\Local\arduino\sketches\41B623F6172E57586D63CEC3C473DE79\sketch\Blink.ino.cpp.merged -o C:\Users\phyzx\AppData\Local\Temp\824923047\sketch_merged.cppIn file included from C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny/WProgram.h:24:0,from C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny/Arduino.h:4,from C:\Users\phyzx\AppData\Local\arduino\sketches\41B623F6172E57586D63CEC3C473DE79\sketch\Blink.ino.cpp.merged:1:C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny/TinyDebugSerial.h:32:0: internal compiler error: Segmentation fault

Please submit a full bug report,with preprocessed source if appropriate.See https://gcc.gnu.org/bugs/ for instructions.exit status 1

Compilation error: exit status 1

I ran NVIDIA delete driver and update and on the upload Arduino IDE repeatedly shows

FQBN: digistump:avr:digispark-tinyUsing board 'digispark-tiny' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5Using 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.mergedGenerating 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.oCompiling libraries...Compiling core...Using previously compiled file: C:\Users\phyzx\AppData\Local\arduino\sketches\B989537E2FFEDDED381696957CA77415\core\pins_arduino.c.oUsing precompiled core: C:\Users\phyzx\AppData\Local\arduino\cores\f9a23a9591584bf3e859390c170928cd\core.aLinking 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" -lmlto1.exe: internal compiler error: invalid resolution in the resolution filePlease submit a full bug report,with preprocessed source if appropriate.See https://gcc.gnu.org/bugs/ for instructions.lto-wrapper.exe: fatal error: C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc returned 1 exit statuscompilation terminated.c:/users/phyzx/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: error: lto-wrapper failedcollect2.exe: error: ld returned 1 exit statusexit status 1

Compilation error: exit status 1

I opened a new sketch, then compile and upload:

FQBN: digistump:avr:digispark-tinyUsing board 'digispark-tiny' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5Using core 'tiny' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5

Detecting libraries used...C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=16000000L -DSERIAL_BUFFER_SIZE= -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DDIGISTUMPCORE="1.7.5" -DDIGISTUMPCORE_MAJOR=1UL -DDIGISTUMPCORE_MINOR=7UL -DDIGISTUMPCORE_PATCH=5UL -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\variants\digispark C:\Users\phyzx\AppData\Local\arduino\sketches\8BC1517F7B64A9A1663B1E7467A05532\sketch\sketch_may29a.ino.cpp.merged -o nul -MMD -MF C:\Users\phyzx\AppData\Local\arduino\sketches\8BC1517F7B64A9A1663B1E7467A05532\sketch\sketch_may29a.ino.cpp.merged.libsdetect.dError while detecting libraries included by C:\Users\phyzx\AppData\Local\arduino\sketches\8BC1517F7B64A9A1663B1E7467A05532\sketch\sketch_may29a.ino.cpp.mergedGenerating function prototypes...In file included from C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny/WProgram.h:5:0,from C:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny/Arduino.h:4,from C:\Users\phyzx\AppData\Local\arduino\sketches\8BC1517F7B64A9A1663B1E7467A05532\sketch\sketch_may29a.ino.cpp.merged:1:c:\users\phyzx\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\string.h:47:0: internal compiler error: Segmentation fault

Please submit a full bug report,with preprocessed source if appropriate.See https://gcc.gnu.org/bugs/ for instructions.C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=attiny85 -DF_CPU=16000000L -DSERIAL_BUFFER_SIZE= -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_AVR_DIGISPARK -DARDUINO_ARCH_AVR -DDIGISTUMPCORE="1.7.5" -DDIGISTUMPCORE_MAJOR=1UL -DDIGISTUMPCORE_MINOR=7UL -DDIGISTUMPCORE_PATCH=5UL -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\cores\tiny -IC:\Users\phyzx\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.7.5\variants\digispark C:\Users\phyzx\AppData\Local\arduino\sketches\8BC1517F7B64A9A1663B1E7467A05532\sketch\sketch_may29a.ino.cpp.merged -o C:\Users\phyzx\AppData\Local\Temp\2013879794\sketch_merged.cppexit status 1

Compilation error: exit status 1

Please do us all a favour and put the error messages in code tags when you post them here

That should be perfectly fine.

OK, the result of this experiment indicates that your real sketch is not a factor in the fault. That doesn't lead us to a cause, but it does narrow things down through elimination.

Please perform this experiment and then report your results:

  1. Select File > New Sketch from the Arduino IDE menus.
    Arduino IDE will open a new sketch window, which contains a minimal sketch code.
  2. Select Tools > Board > Arduino AVR Boards > Arduino UNO from the Arduino IDE menus.
  3. Compile the sketch, just as you did when you encountered the error before.
  4. If the compilation is successful, repeat several additional times.
    ā“˜ This is necessary due to the unfortunate intermittent nature of the fault you encountered.

Did any of those compilations fail? If so, please provide the output from that compilation, just like you did in your previous reply (please remember to use the code block formatting).

The goal of this experiment is to determine whether the fault is in some way specific to the "DigiStump AVR Boards" platform or the Digispark board definition you had selected previously. If the fault does not occur when compiling with a board from a different platform selected from the Tools > Board menu, then this result would indicate that the specific configuration of the Digistump AVR Boards platform is producing the conditions for the fault. Conversely, if the fault still occurs even with the "Arduino UNO" board selected, then we can disregard the specific configuration of the Digistump AVR Boards platform as a possible factor.

No amount of diagnosing Arduino IDE logs is likely make it run well on a PC that crashes with all software.

I agree. I performed the last thing by removing and updating the Nvidia drivers. Now I wait for crashes if they are to happen.

Uno test performed:

FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8
Using core 'arduino' from platform in folder: C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8

Detecting libraries used...
C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\cores\arduino -IC:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\variants\standard C:\Users\phyzx\AppData\Local\arduino\sketches\8ADE730853D9AE446A24E399C8F9EAF5\sketch\sketch_may30a.ino.cpp.merged -o nul -MMD -MF C:\Users\phyzx\AppData\Local\arduino\sketches\8ADE730853D9AE446A24E399C8F9EAF5\sketch\sketch_may30a.ino.cpp.merged.libsdetect.d
Generating function prototypes...
C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\cores\arduino -IC:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\variants\standard C:\Users\phyzx\AppData\Local\arduino\sketches\8ADE730853D9AE446A24E399C8F9EAF5\sketch\sketch_may30a.ino.cpp.merged -o C:\Users\phyzx\AppData\Local\Temp\280877951\sketch_merged.cpp
C:\Users\phyzx\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\phyzx\AppData\Local\Temp\280877951\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\sketch\\sketch_may30a.ino.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\sketch\\sketch_may30a.ino.cpp.o"
Compiling libraries...
Compiling core...
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\CDC.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\CDC.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\HardwareSerial.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\HardwareSerial.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\Print.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\Print.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\hooks.c" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\hooks.c.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\wiring_pulse.c" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\wiring_pulse.c.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\wiring.c" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\wiring.c.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\main.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\main.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\HardwareSerial2.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\HardwareSerial2.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\new.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\new.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\HardwareSerial0.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\HardwareSerial0.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\wiring_shift.c" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\wiring_shift.c.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\HardwareSerial1.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\HardwareSerial1.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\USBCore.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\USBCore.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\WInterrupts.c" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\WInterrupts.c.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\wiring_analog.c" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\wiring_analog.c.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\Stream.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\Stream.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\IPAddress.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\IPAddress.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\Tone.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\Tone.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\wiring_pulse.S" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\wiring_pulse.S.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\wiring_digital.c" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\wiring_digital.c.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\WString.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\WString.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\WMath.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\WMath.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\HardwareSerial3.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\HardwareSerial3.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\abi.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\abi.cpp.o"
"C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino" "-IC:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\variants\\standard" "C:\\Users\\phyzx\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.8\\cores\\arduino\\PluggableUSB.cpp" -o "C:\\Users\\phyzx\\AppData\\Local\\arduino\\sketches\\8ADE730853D9AE446A24E399C8F9EAF5\\core\\PluggableUSB.cpp.o"
C:\Users\phyzx\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.8\cores\arduino\Print.cpp:266:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
exit status 1

Compilation error: exit status 1

Run a RAM test. One is built-in to Windows 11.

I’d agree , if other applications are causing an issue, sounds like a PC issue . It would be worth reseating the ram and any other plug in cards

Do the check on the RAM

( you can also download test programs )

How much disc space and RAM do you have ?

You may boot into safe mode first to check whether the problems are still there

This can be achieved by pressing Shift while you click on restart of Windows or by using the recovery environment

https://support.microsoft.com/en-us/windows/windows-recovery-environment-0eb14733-6301-41cb-8d26-06a12b42770b

and then changing the startup settings

https://support.microsoft.com/en-us/windows/windows-startup-settings-1af6ec8c-4d4a-4b23-adb7-e76eef0b847f

For RAM test see

https://www.microsoft.com/en-us/surface/do-more-with-surface/how-to-use-windows-memory-diagnostic

Good luck!

Ram: 192gb

SSD: 4tb, 2tb used

Ran win11 ram test. Results in notifications ,but they were turned off so I dont know the results.

Have 2 mem cards installed, I will test with one each this time.

I did a safe mode chkdsk /r. The rebooting has stopped this afternoon. Tomorrow morning should be another test window.

Arduino IDE compiled my sketch but the upload still hangs. Could this be a program problem still since the upload worked last week?

Can I uninstall the IDE and install it? Will I lose anything environmentally?

Usually reinstalling the Arduino IDE should not change your sketchbook files and the libraries installed there.

If you want to be on the very safe side just make a copy of your complete sketchbook directory.

If you used the IDE standard you'll find the sketch directory in your document directory.

For a more detailed information feel free to read this

https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries/

Last, but not least important is the way the Arduino Software (IDE) upgrades itself: all the files in Programs/Arduino (or the folder where you installed the IDE) are deleted and a new folder is created with fresh content. This is why we recommend that you only install libraries to the sketchbook folder so they are not deleted during the Arduino IDE update process.

If you changed the standard location you can find it by opening the preferences dialog ...

I'm going to ask you to provide the full verbose output from an upload attempt.


:red_exclamation_mark: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: ā˜‘ compile in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a reply here on this forum topic by clicking the "Reply" button.
  9. Click the <CODE/> 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.
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to publish the post.