invalid libraries for Due

hi,

just for testing I tried to load a very simple sketch on a Due.

word i, a=99,b=614,c;
long int tm;

void setup() {
  // put your setup code here, to run once:
  pinMode(13,OUTPUT);
  digitalWrite(13,HIGH);
  Serial.begin(19800);

  Serial.println("jetzt geht es los");

  Serial.print("byte ");Serial.println(sizeof(byte));
  Serial.print("short int ");Serial.println(sizeof(short int));
  Serial.print("word ");Serial.println(sizeof(word));
  Serial.print("int ");Serial.println(sizeof(int));

  tm=micros();
  for (i=0; i<10000; i++) {
    c=a*b;
    a++;
  }
  Serial.print("10000 Multiplikationen: ");Serial.println(micros()-tm);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(13,LOW);
  delay(500);
  digitalWrite(13,HIGH);
  delay(500);
}

During compilation the following error message comes up:

Arduino: 1.6.12 (Windows 7), TD: 1.36, Board: "Arduino Due (Programming Port)"

Board arduino_due_x_dbg (platform sam, package arduino) is unknown

Error compiling for board Arduino Due (Programming Port).
Invalid library found in C:\ZusProgs\Arduino\arduino-1.6.12\portable\packages\arduino\hardware\sam\1.6.10\libraries\SPI: C:\ZusProgs\Arduino\arduino-1.6.12\portable\packages\arduino\hardware\sam\1.6.10\libraries\SPI
Invalid library found in C:\ZusProgs\Arduino\arduino-1.6.12\portable\packages\arduino\hardware\sam\1.6.10\libraries\SPI: C:\ZusProgs\Arduino\arduino-1.6.12\portable\packages\arduino\hardware\sam\1.6.10\libraries\SPI

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

In the Tools menue "Arduino Due (Programming port)" is selected.
I don't understand why the error message tells me that the board is unknown.
The libraries all have been installed with the IDE or maybe later when I used the Boards Manager to be able to program a Due.

What can I do to get the sketch compiled?

SupArdu

I can compile your skectch with Arduino board 1.6.7, although your baud rate is not available !!

I am using uint64_t/..../uint8_t and int64_t/.../int8_t plus float, it's more handy to read size of variables.

SupArdu:

Board arduino_due_x_dbg (platform sam, package arduino) is unknown

This error happens when you update your hardware package via Boards Manager but the process fails to completely remove the old package version. You can fix it by doing this:

  • Open C:\ZusProgs\Arduino\arduino-1.6.12\portable\packages\arduino\hardware\sam
  • You should see two version folders. One of these folders is the version you upgraded from that was not completely removed. You need to delete that folder. Please be very careful when deleting files on your computer. When in doubt back up!

Thank you very much, now it works.

Sorry, I am late with my response, but I was heavily engaged in a project.

SupArdu