Error: OSCOKIRQ failed to assert

Hi guys,

Ive been googling myself mad trying to find a fix to my problem but i just keep getting this error and dont know what to do.
All I am trying to do is connect my Arduino Mega ADK board to my android device,

#include <Max3421e.h>
#include <Usb.h>
#include <AndroidAccessory.h>

AndroidAccessory acc("Arduino SA", "Mega_ADK", "Mega_ADK",
"1.0", "URI", "1");

char hello[] = "Hello World!";

void setup() {
  Serial.begin(115200);
  Serial.println("Powering on");
  acc.powerOn();
  Serial.println("success");
  
  
}

void loop() {

  if(acc.isConnected()){
    Serial.println("BARREL");
    delay(250);
  }
    for(int x = 0; x < 12; x++) {
      Serial.print(hello[x]);
      delay(250);
    }
    Serial.println();
    delay(250);
  
}

that is all the code for my arduino just for testing. it fails when it tries to power on i get the "Error: OSCOKIRQ failed to assert" error. I have a 12V supply connected to my arduino board aswell.

Heres another weird thing thats happening, when i try and put the demokit example on the board (with the Joystick lines commented out because that fails) it still throws the "Error: OSCOKIRQ failed to assert" error but actually goes on and lets me connect my phone and it works. When I comment out some initializations of the pins in the demokit example it again gets stuck on "Error: OSCOKIRQ failed to assert"... I am really lost and have been googling/trying for days now with no success :confused:

hope you guys can help, thanx

edit:
So, i took some of the code from the demokit and added it to my hello world

#include <AndroidAccessory.h>
#include <Servo.h>

AndroidAccessory acc("Arduino SA", "Mega_ADK", "Mega_ADK",
"1.0", "URI", "1");

#define  SERVO1         11
#define  SERVO2         12
#define  SERVO3         13

char hello[] = "Hello World!";
Servo servos[3];
void setup() { 
  
  Serial.begin(115200);
  servos[0].attach(SERVO1);
  servos[0].write(90);
  servos[1].attach(SERVO2);
  servos[1].write(90);
  servos[2].attach(SERVO3);
  servos[2].write(90);
  Serial.println("Powering on");
  acc.powerOn();
  Serial.println("success");
  
  
}

void loop() {

  if(acc.isConnected()){
    Serial.println("BARREL");
    delay(250);
  }
    for(int x = 0; x < 12; x++) {
      Serial.print(hello[x]);
      delay(250);
    }
    Serial.println();
    delay(250);
  
}

and now it still throws the error but it connects and runs fine. so confused >.<

edit 2: sorted it out -.- was using wrong libraries,,, was using libraries needed by the usb shield

hi Spekko;
can please give link to library files that work without trouble for you..i am stuck in the same problem.