- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I wanted to put the application in AN60590 PSoC 5, the ARM compiler does not recognize the function log
multiply_factor = (Q_BY_K AdcResolution *) / (IDEALITY_FACTOR * (log (CurrentRatio)));
while log (20) or log (20.12) works
This does not in PSoC Creator 1 and 2
If you have the solution!
thank you
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This KB article address your issue http://www.cypress.com/?id=4&rID=42838. I have also talked about this KB in the AN60590 application note (http://www.cypress.com/?rID=42993) in page 5 of the pdf just before the section "Transistor Selection".
Regards,
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you
I'm sorry, I saw KB article but I did not understand. Now it works but I do not understand why "m" but it does not matter.
Happy Holidays
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In order to use the external library one have to link the library using /usr/lib/libm.a in the command line
The short form is
-lm
the compiler option -lXYZ will attempt to link object files with a library file ‘libXYZ.a’ in the standard library directories