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

How to link nrfx GPIOTE and PPI in Zephyr?

Hello,

Zephyr 1.14.0 includes the nrfx code to use GPIOTE and PPI and my code compiles but I get

undefined reference errors to the nrfx_gpiote_ and nrfx_ppi_ functions.

All the Kconfig options regarding nrfx based PPI and GPIOTE are without prompts so they get set implicitly.

But how?

Getting the nrfx Timer to link was done by

CONFIG_COUNTER=y
CONFIG_COUNTER_TIMER1=y

What are the right Kconfig options to get linked nrfx PPI and GPIOTE?
 

Best regards,

Árpád

Parents Reply Children
  • Hi Didrik,

    thank you!

    Simply putting a Kconfig file with this content:

    config ACTIVATE_NRFX_PPI_AND_GPIOTE
      bool "Turn on the invisible NRFX_PPI and NRFX_GPIOTE options"
      select NRFX_PPI if HAS_HW_NRF_PPI
      select NRFX_GPIOTE if HAS_HW_NRF_GPIOTE
      help
        Turn on the invisible NRFX_PPI and NRFX_GPIOTE options.

    source "Kconfig.zephyr"

    into the project folder and using it in the prj.conf:

    CONFIG_ACTIVATE_NRFX_PPI_AND_GPIOTE=y

    does it. 

    Best regards,

    Árpád

Related