This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160, followed simple steps for nrfx inclusion, but still undefined references

Hello, I'm trying to use the PDM in the nrf9160. I'm using SDK tag 1.2.n  I added

#include <nrfx_pdm.h> at the top of my main.c file.

I put

CONFIG_NRFX_PDM=y

in the prj.config file.

I can see that

CONFIG_HAS_NRFX=y

is uncommented in the .config file, yet I still get undefined reference errors for functions called into the nrfx_pdm module. What could be wrong?

Thanks!

Parents
  • Hi,

     

    In order to use a specific NRFX module in ncs v1.2.0 (and newer), you need to enable it in your project (add it to prj.conf), include the appropriate header in your source file, and reconfigure your project.

    For pdm, it would be adding CONFIG_NRFX_PDM=y, and add #include <nrfx_pdm.h> in your source file.

     

    If you get an error, I suspect you need to re-import your project. Could you try this and report back?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    In order to use a specific NRFX module in ncs v1.2.0 (and newer), you need to enable it in your project (add it to prj.conf), include the appropriate header in your source file, and reconfigure your project.

    For pdm, it would be adding CONFIG_NRFX_PDM=y, and add #include <nrfx_pdm.h> in your source file.

     

    If you get an error, I suspect you need to re-import your project. Could you try this and report back?

     

    Kind regards,

    Håkon

Children
Related