Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work only, if compiled with "Debug" option #5

Open
reinhard1 opened this issue Mar 22, 2020 · 4 comments
Open

Work only, if compiled with "Debug" option #5

reinhard1 opened this issue Mar 22, 2020 · 4 comments

Comments

@reinhard1
Copy link

The firmware crash after ca. 150 ms, if not compiled with "debug" option.
I use teensyduino 1.51 and arduino 1.8.12 on linux64.

@juliandesvignes
Copy link
Owner

Hi,

I have just tested the blink example on my teensy4 with teensyduino 1.51 on release mode (-D TEENSY_OPT_FASTEST) with success. I kept it running for 30+ mins without any hard fault being triggered.
Could you provide a code sample that exhibits the problem ?

@reinhard1
Copy link
Author

Hello,

that is strange, i use your example, just rename it to "teensy4_freertos.ino".

I build it from the arduino ide,

@trlafleur
Copy link

I'm was seeing the same problem with Optimize mode = Fastest
Then I tried all Optimize mode's, debug and all other modes works, and now Fastest also works??

Very odd...

Teensyduino 1.8.12
Teensyduino, Version 1.51
as above, --> just rename it to "teensy4_freertos.ino"

@trlafleur
Copy link

In an update....

Using anything other than debug option, makes my code un-stable....
So it appears that there are issues when one tries to optimize the code.
More testing needs to be done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants