Hi,
I had a project on Teensy 3.1 and it worked perfectly without touching for almost 7 years. Now I need something to change in that. Like a PWM frequency. I've opened my file on Arduino IDE 2.3.2 . Changed the PWM freq. Upload without any error. Now it does not work .
* SerialEvent1 2 3 I was using it. But now I cannot get any data from any serial port. I can send messages but I cannot get data with interrupts.
I've tried simplest code but not working either
For testing the HARDWARE this code is running perfectly
So I know that TEENSY is ok. Uploading is ok. But there is something wrong in compiler or ???
PS: I'm using v1.59.00 on BoardManager.
* Also the setup is like this.
I had a project on Teensy 3.1 and it worked perfectly without touching for almost 7 years. Now I need something to change in that. Like a PWM frequency. I've opened my file on Arduino IDE 2.3.2 . Changed the PWM freq. Upload without any error. Now it does not work .
* SerialEvent1 2 3 I was using it. But now I cannot get any data from any serial port. I can send messages but I cannot get data with interrupts.
I've tried simplest code but not working either
C:
char rd = 0;
void setup()
{
Serial1.begin(115200, SERIAL_8N1);
pinMode(LED_BUILTIN, OUTPUT);
Serial1.printf ("Hello World \n\r");
}
void loop()
{
}
void serialEvent1(void)
{
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
rd = Serial1.read();
}
For testing the HARDWARE this code is running perfectly
C:
char rd = 0;
void setup()
{
Serial1.begin(115200, SERIAL_8N1);
pinMode(LED_BUILTIN, OUTPUT);
Serial1.printf ("Hello World \n\r");
}
void loop()
{
if (Serial1.available())
{
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
rd = Serial1.read();
}
}
So I know that TEENSY is ok. Uploading is ok. But there is something wrong in compiler or ???
PS: I'm using v1.59.00 on BoardManager.
* Also the setup is like this.