FPU Configuration #29174
Unanswered
rodrigobrochado
asked this question in
Q&A
FPU Configuration
#29174
Replies: 1 comment 3 replies
-
Are you using an Arm Cortex-m with FPU? If so, any threads is allowed to access the FP registers: https://docs.zephyrproject.org/2.4.0/reference/kernel/other/float.html#arm-cortex-m-architecture-with-the-floating-point-extension If not, please share which SoC you are using. Thanks. The documentation, you linked to, is for Zephyr v2.4.0. Is this the version you are using? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have 2 cooperative threads that use float variables to do some computations. I'm a little confused if I need to set up the Floating Point Services. I'm not sure if it is only required for low-level operations with FP registers or for normal math operations as well.
Because I didn't set it up (and have no CONFIG_FPU on autoconf.h), both of my threads run ok and I don't get any errors, although the doc says that "the kernel generates a fatal error condition and aborts the thread" if I use FP registers in No FP registers mode.
The fatal error would be only for preemptive threads?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions