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

teensy31 stops execution when using float #162

Closed
gandy92 opened this Issue Apr 8, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@gandy92

gandy92 commented Apr 8, 2015

porting my avr arduino firmware to teensy 3.1 using arm4, I encountered a strange problem.

The code compiles and uploads perfectly, but execution stops at the first point a float variable is used. Assigning a value to a float variable seems not to be the problem (maybe the code is removed during optimization?) but a multiplication already makes the arm stop dead.

has anyone seen this before and know how to fix this? I can do integer operations for now but eventually I need to use libraries that make internal use of floating point arithmetics.

thanks, Andy.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Apr 8, 2015

@gandy92 I've just removed hard FPU. Please upgrade PlatformIO to the latest develop and update all platforms via > platformio update.

Did it help you?

@ivankravets ivankravets added the bug label Apr 8, 2015

@ivankravets ivankravets self-assigned this Apr 8, 2015

@ivankravets ivankravets added this to the 1.4.0 milestone Apr 8, 2015

@gandy92

This comment has been minimized.

gandy92 commented Apr 8, 2015

That was fast 😄

Thank you for fixing this, everything works like a charme, now.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Apr 8, 2015

The issues from @gandy92 should be fixed as soon as possible 😊

ivankravets added a commit that referenced this issue Apr 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment