Hi,
I am trying to power on the teensy to save some data and then power off it again.
I noticed that the first line in the setup is executed after 400ms (on a small sketch and on heavy sketches).
I read somewhere that teensy boots in 5ms. Is there a way to speed up this "delay" of 400ms?
I got always this output:
I also tried to attach an oscillator, setting an output to high and I get a delay of 400ms from the power signal until the output is set:
I don't know if the bootloader need some time or if I can set something in the IDE (currently it is 96MHz speed optimized).
Thanks,
Adriano
I am trying to power on the teensy to save some data and then power off it again.
I noticed that the first line in the setup is executed after 400ms (on a small sketch and on heavy sketches).
I read somewhere that teensy boots in 5ms. Is there a way to speed up this "delay" of 400ms?
Code:
unsigned long startuptime = 0;
void setup() {
startuptime = millis();
while(!Serial);
Serial.print(F("Started up in "));
Serial.print(startuptime);
Serial.println(F("ms"));
}
void loop() {}
I got always this output:
Started up in 400ms
I also tried to attach an oscillator, setting an output to high and I get a delay of 400ms from the power signal until the output is set:
Code:
void setup() {
pinMode(6, OUTPUT);
digitalWrite(6, HIGH);
}
void loop() {}
I don't know if the bootloader need some time or if I can set something in the IDE (currently it is 96MHz speed optimized).
Thanks,
Adriano