- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have been working with the WICED-Smart SDK, and have had some trouble in regards to floating-point math.
When I try to do double arithmetic (i.e. increase a double variable by 1) I get multiple runtime errors such as the following:
undefined reference to `__aeabi_i2d'
I assume this is coming up because I haven't included the proper library in order to these functions, is that correct?
If so, is there an accessible library that can solve this and allow this arithmetic to happen?
Any help you can provide will be greatly appreciated.
Thanks,
Gurpal
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also consider using a fixed point math library like libfixmath. With caching and the look-up-table disabled, this library compiles to under 2K. Unused function elimination is enabled by default for all applications in the SDK. So only functions that are accessed by the application will be included in the final image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Gurpal,
Since our onboard processor is Cortex M3 based, it lacks the FPU needed for Floating point operations (this was added with the Cortex M4) .
I checked with the team and the SW libraries for floating point arithmetic are not included within the ROM and SDK because they consume alot of precious resources.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the quick response Mike.
I thought it was something along those lines. Guess I'll have to try something else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also consider using a fixed point math library like libfixmath. With caching and the look-up-table disabled, this library compiles to under 2K. Unused function elimination is enabled by default for all applications in the SDK. So only functions that are accessed by the application will be included in the final image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has anyone used any other libraries with good experiences?