Weird error message - lefjava.io.IOException: No space

Getting this error message - lefjava.io.IOException: No space - when i try to compile / upload my code. Does this mean I’ve written too long of a code? It doesn’t seem thaaaat long. This is for a motion controlled speech synthesizer. To finish this thing I’ll need to write in a LOT more commands…

ps i’m using AtMega328 duemilanove, with sparkfun 5DOF accelerometer and a speakjet chip.

i should also mention that it seems to continuously come up, filling the entire message box, not just once.

code -

#include <SoftwareSerial.h>
#define RES  3 //pins for speakjet
#define txPin  2
#define busyPin 4
#define bufferPin 6
int val = 0

#define X_ACCEL_APIN 0 //input pins for 5DOF
#define Y_ACCEL_APIN 1
#define Z_ACCEL_APIN 2
#define V_REF_APIN   3
#define Y_RATE_APIN  4
#define X_RATE_APIN  5

#define IY 128 // speakjet speech command codes
#define IH 129
#define EY 130
#define EH 131
#define AY 132
#define AX 133
#define UX 134
#define OH 135
#define AW 136
#define OW 137
#define UH 138
#define UW 139
#define MM 140
#define NE 141
#define NO 142
#define NGE 143
#define NGO 144
#define LE 145
#define LO 146
#define WW 147
#define RR 148
#define IYRR 149
#define EYRR 150
#define AXRR 151
#define AWRR 152
#define OWRR 153
#define EYIY 154
#define OHIY 155
#define OWIY 156
#define OHIH 157
#define IYEH 158
#define EHLL 159
#define IYUW 160
#define AXUW 161
#define IHWW 162
#define AYWW 163
#define OWWW 164
#define JH 165
#define VV 166
#define ZZ 167
#define Zh 168
#define DH 169
#define BE 170
#define BO 171
#define EB 172
#define OB 173
#define DE 174
#define DO 175
#define ED 176
#define OD 177
#define GE 178
#define GO 179
#define EG 180
#define OG 181
#define CH 182
#define HE 183
#define HO 184
#define WH 185
#define FF 186
#define SE 187
#define SO 188
#define SH 189
#define TH 190
#define TT 191
#define TU 192
#define TS 193
#define KE 194
#define KO 195
#define EK 196
#define OK 197
#define PE 198
#define PO 199
#define P0 0
#define P1 1
#define P2 2
#define P3 3
#define P4 4
#define P5 5
#define P6 6
#define FAST 7
#define SLOW 8
#define STR 14
#define RLX 15
#define PIT 22
#define SPD 21
#define VOL 20
#define BND 23
#define RST 31
#define REPEAT 26

#define RANSYL random(66, 127);
#define RANPIT random(31, 200);
#define RANCON random(165, 199);
#define RANSPD random(50, 120);

SoftwareSerial speakjet = SoftwareSerial(0, txPin);

void setup()

{ pinMode(txPin, OUTPUT);
  pinMode(bufferPin, INPUT);
  randomSeed(analogRead(5));
  pinMode(busyPin, INPUT);
  speakjet.begin(9600); //talk to speakjet

  // initialize serial communication:
  Serial.begin(9600);
  pinMode(RES, OUTPUT); //to get rid of "ready" sound

  digitalWrite(RES, LOW); //reset speakjet
  delay(100);
  digitalWrite(RES, HIGH);
  
  Serial.begin(115200);
  
}

// If this is defined it prints out the FPS that we can send a
// complete set of data over the serial port.
#define CHECK_FPS;

void loop()
{
  int xAccel=0, yAccel=0, zAccel=0, vRef=0, xRate=0, yRate=0;
  unsigned int startTag = 0xDEAD;  // Analog port maxes at 1023 so this is a safe termination value
  int loopCount;

#ifdef CHECK_FPS  
  unsigned long startTime, endTime;
  startTime = millis();
#endif
  
  // Can't do more than 64 loops or could overflow the 16 bit ints
  // This just averages together as many sensor reads as we can in
  // order to reduce sensor noise.  Might want to introduce add
  // a smarter filter her in the future.

  loopCount = 64;  // 12 gives a little over 100 FPS
  for(int i = 0; i< loopCount; ++i)
  {

    xAccel += (analogRead(X_ACCEL_APIN) - (340));  // configure default accel values to 0
    yAccel += (analogRead(Y_ACCEL_APIN) - (343));
    zAccel += (analogRead(Z_ACCEL_APIN) - (409));
    vRef   += analogRead(V_REF_APIN);
    xRate  += (analogRead(X_RATE_APIN) - (279));
    yRate  += (analogRead(Y_RATE_APIN) - (275));
   
}
  xAccel /= loopCount;
  yAccel /= loopCount;
  zAccel /= loopCount;
  vRef   /= loopCount;
  xRate  /= loopCount;
  yRate  /= loopCount;

  Serial.print("xAccel = ");  // print accel values
  Serial.print(xAccel);
  Serial.print(" yAccel = ");
  Serial.print(yAccel);
  Serial.print(" zAccel = ");
  Serial.print(zAccel);
  Serial.print(" vRef = ");
  Serial.print(vRef);
  Serial.print(" xRate = ");
  Serial.print(xRate);
  Serial.print(" yRate = ");
  Serial.print(yRate);
  
#ifdef CHECK_FPS  
  endTime = millis();
  Serial.print(" - FPS: ");
  Serial.println(1.f / (endTime-startTime) * 1000);
#endif 

val = digitalRead(bufferPin); //tell us if speakjet is busy, and give it a short break
if (val == HIGH)
{   Serial.print("BUSY!! SHIT!!!   ");
    delay(300); 
    delay(300);}

if (yAccel == 15) // the start of many motion commands
 { speakjet.print(SPD, BYTE);
  speakjet.print(1, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(35, BYTE);
  speakjet.print(OH, BYTE); 

} 

if (yAccel == 16) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(2, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(36, BYTE);
  speakjet.print(OH, BYTE);
  }
  
if (yAccel == 17) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(3, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(37, BYTE);
  speakjet.print(OH, BYTE);
  }

if (yAccel == 18) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(4, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(38, BYTE);
  speakjet.print(OH, BYTE);
  }
if (yAccel == 19) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(5, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(39, BYTE);
  speakjet.print(OH, BYTE);
  }
if (yAccel == 20) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(6, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(40, BYTE);
  speakjet.print(OH, BYTE);
  }
if (yAccel == 21) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(7, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(41, BYTE);
  speakjet.print(OH, BYTE);
  }
if (yAccel == 22) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(8, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(42, BYTE);
  speakjet.print(OH, BYTE);
  }
if (yAccel == 23) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(9, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(43, BYTE);
  speakjet.print(OH, BYTE);
  }
if (yAccel == 24) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(10, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(44, BYTE);
  speakjet.print(OH, BYTE);
  }
if (yAccel == 25) 
{ speakjet.print(SPD, BYTE);
  speakjet.print(11, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(45, BYTE);
  speakjet.print(OH, BYTE);
  }
  
if ((yAccel > 30) && (yAccel < 40))
{ speakjet.print(SPD, BYTE);
  speakjet.print(21, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(55, BYTE);
  speakjet.print(OH, BYTE);
  delay(300);
}
  
if ((yAccel < -10) && (yAccel > -20))
{ speakjet.print(SPD, BYTE);
  speakjet.print(1, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(35, BYTE);
  speakjet.print(IY, BYTE);
 delay(300);
}

if ((yAccel < -20) && (yAccel > -30))
{ speakjet.print(SPD, BYTE);
  speakjet.print(10, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(45, BYTE);
  speakjet.print(IY, BYTE);
  delay(300);
}

if ((yAccel < -30) && (yAccel > -40))
{ speakjet.print(SPD, BYTE);
  speakjet.print(20, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(55, BYTE);
  speakjet.print(IY, BYTE);
  delay(300);
}

if ((xAccel > 10) && (xAccel < 20))
{ speakjet.print(SPD, BYTE);
  speakjet.print(1, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(35, BYTE);
  speakjet.print(AY, BYTE);
 delay(300);
}

if ((xAccel < -10) && (xAccel > -20))
 { speakjet.print(SPD, BYTE);
  speakjet.print(1, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(35, BYTE);
  speakjet.print(OW, BYTE);
  delay(300);
 }
 
if ((xAccel < -20) && (xAccel > -30))
{ speakjet.print(SPD, BYTE);
  speakjet.print(10, BYTE);
  speakjet.print(PIT, BYTE);
  speakjet.print(45, BYTE);
  speakjet.print(OW, BYTE);
  delay(300);
}
}

Hm, yeah, I think my hard drive was just so full that I didn’t have enough free disk space to compile the code.

I’ll leave it here for future programmers…

Shit, now I have a new problem. I deleted a bunch of stuff on my desktop to clear space (images, pdfs, docs, ect). I didn't think I deleted anything important, or with the word 'arduino' in it, but now whenever i try to compile code (on other sketches, too), I get

"Build folder disappeared or could not be written" Any clue what the build folder is, or how I can create a new one? I didn't think it would have been saved on the desktop...but maybe it was...

Thanks...

The target files are placed in %TEMP% so my [u]guess[/u] is that it is a reference to %TEMP%. The phrase "build folder" is unfortunately rather ambiguous.

oh yeah, we’ve got this too - -

java.io.FileNotFoundException: /tmp/build3577691906114826568.tmp/Speakjet_5DOF.cpp (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:131)

hmm, does that mean that .tmp folder got deleted? i wouldn’t think that would be on the desktop. and I certainly didn’t see it.

well, it fixed itself after restarting my computer. thanks for reading, anyways. strange.