In obtaining the value of illumination, it needs to obtain the measured value by logarithm. But I write it this way, but the compilation error.The header file math.h is already included
How do I solve this problem?
Hello,
Thank you for contacting NXP support.
Can you please help me with some extra details:
In the meantime I can suggest some steps in order to solve this
Can you please try to fix the parser
And please let me know if this help you out with this problem.
hi nxf77486
Thank you for your reply
I'm using nxp's JN5189 chip.
The IDE version is MCUXpressoIDE_11.8.0_1165
The SDK Version used is Release Version:2.6.12 JN5189DK6)
The routine I use is JN-AN-1246
I tried to fix the parser the way you said. After the repair is complete, recompile and report the same error. Is there any other way to solve this problem?
hi,
Where to add this compilation flag?
I added in the following position, but the compiler reported the same error
hi ,
My IDE cannot find this option, what should I do?
hello,
I updated the IDE version, but I couldn't find this option, and the compiler still reported the same error. How else can we solve this problem?
Hello,
Thank you for the change on the MCUXpresso IDE.
I understand that the view is different, but in this ZigBee example can you please help me by opening the C/C++ General and go to Formatter view you should see something similar as the image attached, please click on Enable project specific setting and then Apply an close.
Please let me know if this worked.
thank you,
I followed your steps, but the compiler reported the same error
You can use JN1246 routine, call the log function, can compile through?
Look forward to your reply.
Hello,
After reviewing this on further detail. It is possible that you can create your own library and add there the log10 function? This because this seem to not been defined on the block.
As far as I understand you created your own function to obtain the value of illumination. So in this case will be required to use an alternative due to the restrictions on the project.