dear all
Can keil compiled library be used in segger embedded studio? For example, I have a paw8001_ ofn114009_ 12_ m4f_ keil.lib
Library, can I put it directly into NRF connect SDK project to compile?
Best Regards
dear all
Can keil compiled library be used in segger embedded studio? For example, I have a paw8001_ ofn114009_ 12_ m4f_ keil.lib
Library, can I put it directly into NRF connect SDK project to compile?
Best Regards
Hi,
No, that will not work, primarily because of different wchar size between Keil and GCC (which is used by SES).
Thank you very much for your reply. If I use GCC library, is that ok?
Yes, that should be no problem (but note that it must map the IC you use. For instance if the library is built to use floating point instructions you cannot use it with nRF5 devices that does not have and FPU, etc).
My current library just uses floating point operations,The device IC is nrf52840, my pri.conf is
CONFIG_FPU=y
CONFIG_NEWLIB_LIBC=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
but There are many such errors when compiling the library

Are there any good suggestions for me to solve these problems ?
I found these functions in math. H, but I can't use them
It seems to have something to do with this condition
#if __ISO_C_VISIBLE >= 1999


best regards
Hi,
Have you attempted to build with CONFIG_COMPILER_OPT="-lm"?
(In SES you add compiler options by clicking Extended Settings in the dialog you get from Open nRF Connect SDK Project..., and then add it under Extra CMake Build Options)