SOLVED TimerOne Library: strange beahviours

Hi guys,

I'm using this libray in that way but when I run the code I get strange charatters on the serial.

#include <TimerOne.h>
void calledFunction(){
  Serial.println("test");
}

  void setup(){
    Serial.begin(9600);
    Serial.println("TEST PROGRAM ");  
    delay(2000);
  //Set up del timer per le misure
  Timer1.initialize(500000);
  Timer1.attachInterrupt(calledFunction);
  Timer1.setPeriod(500000);
  }
  
  void loop(){
    int rumore[5];
    int n_arnia=0;
  }

This is what i get on the serial:

TEST PROGRAM 
TE*UQ?TQUQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQ
TQUQTQUQTQeQTQUQTQUQTQUQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQ
TQUQTQUQTQeQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTETQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQ
TQUQTQUQTQUQTQUQTQUQQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQEQTQUQTQUQQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQ
TQUQTQUQTQEQTQUQTQUQTQUQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQ¥QTQUQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQ
TQUQTQUQTQeQTQUQTQUQTQUQTQUQTQUUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQTQUQ

Look like arduino is restart very fast.

You can't use Serial.println in an interrupt routine.

Pete

Ok, I took it away but the problem still remain.

=(

Solved.

I delete all the library and re-install it again and now goes. The Serial.println() too.

Thanks