Tactif CIE
Well-known member
I wanted to have a kinda Serial with several fancy methods to handle VT100/ANSI codes (bold, colors, clear screen, positioning and so on)
So I did :
I did not had any problem until I started coding a small test suite that bypass the usual setup(); loop(); yield(); and runs all the tests instead (but yield() at the end of the tests)
Now, the Teensy crashes randomly during the tests (serial output stops at more or less random places and the teensy is frozen press button + upload are mandatory).
Of course it might be a bug in my code, but just to be sure :
- Since the beginning I wonder if there's any kind of conflicts that could occur with the Serial instance...
- I tried to yield() during the tests - that changed nothing...
What do you think about this ? Am I doing things wrong ?
So I did :
Code:
class Terminal : public usb_serial_class {
public:
Terminal() : usb_serial_class(){};
/* ... methods omitted */
};
I did not had any problem until I started coding a small test suite that bypass the usual setup(); loop(); yield(); and runs all the tests instead (but yield() at the end of the tests)
Now, the Teensy crashes randomly during the tests (serial output stops at more or less random places and the teensy is frozen press button + upload are mandatory).
Of course it might be a bug in my code, but just to be sure :
- Since the beginning I wonder if there's any kind of conflicts that could occur with the Serial instance...
- I tried to yield() during the tests - that changed nothing...
What do you think about this ? Am I doing things wrong ?