DPPI Channel Mask vs GPIO0 pin Mask

Hello, 

I am relatively new to the nrf9161, but I am running into an error with my build.

'TFM_PERIPHERAL_DPPI_CHANNEL_MASK_SECURE' undeclared (first use in this function); did you mean 'TFM_PERIPHERAL_GPIO0_PIN_MASK_SECURE'?

For context, I am trying to configure 3 pins (6, 7, 24) within the application using GPIO_DT_SPEC_GET. 

const struct gpio_dt_spec interupt_pin = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, interupt_gpios);
I am programming to a nrf9161 DK., tool chain 2.7.0
thank you, 
Jack
  • Hi Jack,

    Thanks for checking with us. This kind of error is most likely due to misconfuration.

    I am not sure which smaple you are based on. Can you refer to the GPIO_DT_SPEC_GET usage in zephyr\samples\basic\button? It should work direclty with nRF9161DK.

    Best regards,

    Charlie

  • Hi Jack,

    'TFM_PERIPHERAL_DPPI_CHANNEL_MASK_SECURE' undeclared (first use in this function); did you mean 'TFM_PERIPHERAL_GPIO0_PIN_MASK_SECURE'?

    I encountered the same error. I explored the target_cfg.c and target_cfg.h files (located at C:\ncs\v2.6.0\modules\tee\tf-m\trusted-firmware-m\platform\ext\target\nordic_nrf\common\core), but the execution followed the else path.

    #if NRF_SPU_HAS_MEMORY
        /* There is only one dppi_id */
        uint8_t dppi_id = 0;
        nrf_spu_dppi_config_set(NRF_SPU, dppi_id, TFM_PERIPHERAL_DPPI_CHANNEL_MASK_SECURE,
    			    SPU_LOCK_CONF_LOCKED);
    #else
    	/* TODO_NRF54L15: Use the nrf_spu_feature API to configure DPPI
    	   channels according to a user-controllable config similar to
    	   TFM_PERIPHERAL_DPPI_CHANNEL_MASK_SECURE. */
    #endif

    To resolve the issue, I deleted the build configuration and reconfigured it with secured firmware (not the 'ns' one).

    The error was resolved.

    Kind Regards,
    Aditya P

Related