Hello,
I'm working on a project on a Teensy 3.2 and Arduino IDE and everything was working great. All of the sudden when I initialize my class object and call the constructor it enters a dead zone and control never returns. So, I commented out all the implementation details and still nothing will execute beyond the line where I invoke the class.
So in my cpp file I have
and in my .ino
Everything compiles fine. Uploads fine. The serial monitor shows online. When I comment out the class invocation everything proceeds fine. I would think that an empty constructor would pass control right back to the program but this is not happening. I even tried throwing a "return;" in the empty constructor for kicks. Any ideas on what might be happening? What kind of things can get past compilers but cause such a problem? I'm really banging my head against the wall here.
I'm working on a project on a Teensy 3.2 and Arduino IDE and everything was working great. All of the sudden when I initialize my class object and call the constructor it enters a dead zone and control never returns. So, I commented out all the implementation details and still nothing will execute beyond the line where I invoke the class.
So in my cpp file I have
Code:
Class::Class()
{
//commented out code
}
and in my .ino
Code:
#include "Class.h"
Class thisClass = Class();
void setup()
{
//stuff that wont happen
}
Everything compiles fine. Uploads fine. The serial monitor shows online. When I comment out the class invocation everything proceeds fine. I would think that an empty constructor would pass control right back to the program but this is not happening. I even tried throwing a "return;" in the empty constructor for kicks. Any ideas on what might be happening? What kind of things can get past compilers but cause such a problem? I'm really banging my head against the wall here.