1st I'm a beginner so this is likely to be something basic/stupid (sorry in advance)
Previously I uploaded my first code for a load cell(weight sensor) and that works fine.
I now want to add a SD card so I just want to check the connections I made - I tried the 'card info' script from the library but I get a compilation error (below)
I checked comms - all were OK and opening the serial monitor the board is still running the weight sensor script - do I need to delete that first or stop it running? I've tried the reset on the board but that only stopped it running for a few seconds it doesn't seem to erase the script.
error is:
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"
In function 'global constructors keyed to 65535_0_CardInfo.ino.cpp.o':
lto1.exe: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.