SDK 2.9.0 undefined reference to `nrfx_gppi_channel_alloc'

I'm updating our nRF5340 firmware from SDK 2.4.2 to the SDK2.9.0. After few modifications, I was able to compile it using the SDK2.8.0. Now I'm trying to compile it with SDK 2.9.0 and I couldn't figure out how to fix those undefined reference.

c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/soc/soc/arm/nordic_nrf/lib..__modules__soc-hwmv1__soc__arm__nordic_nrf.a(soc.c.obj): in function `rtc_pretick_cpuapp_init':
C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:408: undefined reference to `nrfx_gppi_channel_alloc'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:418: undefined reference to `nrfx_gppi_task_endpoint_setup'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:419: undefined reference to `nrfx_gppi_event_endpoint_setup'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:420: undefined reference to `nrfx_gppi_channels_enable'

Thanks in advance,

Leiser

Parents
  • Hi

    Just to start with. Which hardware model are you using? As you might know we changed from HW model 1 to HW model 2 with NCS 2.7. With the new HW model board names changed
    Please see this part of the release note

    "

    All samples and applications in the SDK have been migrated. Consult respective documentation as additional or changed parameters might be needed to build them successfully. Applications that are outside of the SDK and use custom-defined boards should not be affected by these changes. However, modifications might still be required as per the migration procedure described in Migration guide for nRF Connect SDK v2.7.0. nRF Connect for VS Code users migrating to the latest version of the SDK might be affected.

    All samples and applications in the SDK are built with sysbuild by default. Applications that are outside the SDK are not built with sysbuild by default.

    The deprecated methods are scheduled for removal after the next release. We recommend transitioning to the alternatives as soon as possible. Consult migration guides for Migrating to the current hardware model and Migrating from multi-image builds to sysbuild. Exercise caution when migrating production environments to the latest SDK.

    "
    Regards

    Runar

  • I'm using the HW model 1 and I'm not using sysbuild.

    Regards,

    Leiser

  • Yes, I'm using VScode for now and on the build configuration I set the no sysbuild option. 

    My plans is to test the modification I did to make the code to compile with the SDK 2.8.0. As soon as, I 'm sure the firmware is working I will do the modification to use sysbuild and the hardware model 2 device tree. 

  • Good morning

    Could you try to add CONFIG_NRFX_GPPI to your overlay?

    Regards

    Runar

  • I had tried this before and it did not work. I tried it again to copy the error messages.

    oc-hwmv1__soc__arm__nordic_nrf.a(soc.c.obj): in function `rtc_pretick_cpuapp_init':
    C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:408: undefined reference to `nrfx_gppi_channel_alloc'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:418: undefined reference to `nrfx_gppi_task_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:419: undefined reference to `nrfx_gppi_event_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:420: undefined reference to `nrfx_gppi_channels_enable'

  • Hi and thanks for the feedback. 

    Can you try to delete your build folder and try again? I will meanwhile check internally

    Regards

    Runar

  • Deleting the build folder only change the order the errors were logged.

    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/soc/soc/arm/nordic_nrf/lib..__modules__soc-hwmv1__soc__arm__nordic_nrf.a(soc.c.obj): in function `rtc_pretick_cpunet_init':
    C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:460: undefined reference to `nrfx_gppi_channel_alloc'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:466: undefined reference to `nrfx_gppi_event_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:467: undefined reference to `nrfx_gppi_task_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:468: undefined reference to `nrfx_gppi_event_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:469: undefined reference to `nrfx_gppi_task_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:470: undefined reference to `nrfx_gppi_channels_enable'
    collect2.exe: error: ld returned 1 exit status

Reply
  • Deleting the build folder only change the order the errors were logged.

    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/soc/soc/arm/nordic_nrf/lib..__modules__soc-hwmv1__soc__arm__nordic_nrf.a(soc.c.obj): in function `rtc_pretick_cpunet_init':
    C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:460: undefined reference to `nrfx_gppi_channel_alloc'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:466: undefined reference to `nrfx_gppi_event_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:467: undefined reference to `nrfx_gppi_task_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:468: undefined reference to `nrfx_gppi_event_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:469: undefined reference to `nrfx_gppi_task_endpoint_setup'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: C:/ncs/v2.9.0/modules/soc-hwmv1/soc/arm/nordic_nrf/nrf53/soc.c:470: undefined reference to `nrfx_gppi_channels_enable'
    collect2.exe: error: ld returned 1 exit status

Children
Related