Adding external driver - https://github.com/circuitdojo/pcf85063a

Hello

Forgive me if this may be obvious but I am having trouble finding the https://github.com/circuitdojo/pcf85063a in my main.c file. I add the lines in my "C:\SDK.V2.2.0\v2.2.0\zephyr\west.yml" file and run the west update, however
I still get "fatal error: drivers/counter/pcf85063a.h: No such file or directory"  I am following the instructions in the link but it seems that west update doesn't update the manifest. Please assist if possible.

Kind regards,
Hassan

  • apologies, the link I used in the post  was for the wrong west.yml file.  I thought it may be worthwhile to show my logs for the west update.

    C:\SDK.V2.2.0\v2.2.0>west update
    === updating zephyr (zephyr):
    HEAD is now at c0689b16ff [nrf fromlist] lib: newlib: Define _ANSI_SOURCE
    M       boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dts
    M       west.yml
    === updating pcf85063a (pcf85063a):
    --- pcf85063a: fetching, need revision master
    From https://github.com/circuitdojo/pcf85063a
     * branch            master     -> FETCH_HEAD
    HEAD is now at 81c1c28 APIs for Offset Register and CAP_SEL setting (#6)
    === updating sdk-hostap (modules/lib/hostap):
    HEAD is now at 49fddb8f5 Fix handling connection timeout equal to 0
    === updating mcuboot (bootloader/mcuboot):
    HEAD is now at 78fd7ff9 [nrf fromlist] boot_serial: Fix rc not being returned as a signed value
    === updating mbedtls-nrf (mbedtls):
    HEAD is now at 89419b374 [nrf noup] Constant size for psa_core_key_attributes_t struct
    === updating nrfxlib (nrfxlib):
    HEAD is now at 03d0965d doc: Update versions for 2.2.0 release
    === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    HEAD is now at 4a929712 [nrf fromlist]: Do not attempt to reset locked regions
    === updating tfm-mcuboot (modules/tee/tfm-mcuboot):
    HEAD is now at 4aa516e7 Bump versions for v1.7.2
    === updating matter (modules/lib/matter):
    HEAD is now at f4a75a5dc [nrf noup] config: nrfconnect: Define _DEFAULT_SOURCE
    Synchronizing submodule url for 'third_party/nlio/repo'
    Synchronizing submodule url for 'third_party/nlassert/repo'
    Synchronizing submodule url for 'third_party/nlunit-test/repo'
    Synchronizing submodule url for 'third_party/pigweed/repo'
    === updating cjson (modules/lib/cjson):
    HEAD is now at c6af068 [nrf fromtree] fix: potential memory leak in merge_patch() (#611)
    === updating azure-sdk-for-c (modules/lib/azure-sdk-for-c):
    HEAD is now at 308c171c [nrf fromlist] Make repository a Zephyr module
    === updating cmock (test/cmock):
    HEAD is now at f65066f Merge pull request #404 from tz18/patch-1
    Synchronizing submodule url for 'vendor/c_exception'
    Synchronizing submodule url for 'vendor/unity'
    === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    HEAD is now at d7ed96d Memfault Firmware SDK 0.35.0 (Build 615)
    === updating cirrus (modules/hal/cirrus-logic):
    HEAD is now at 9f6b381 sdk-mcu-drivers: Added build system configs and generated files
    === updating openthread (modules/lib/openthread):
    HEAD is now at 0759de4fc [dependabot] update commit message prefix (#8457)
    === updating canopennode (modules/lib/canopennode):
    HEAD is now at 53d3415 Merge pull request #5 from teslabs/module-name
    === updating chre (modules/lib/chre):
    HEAD is now at ef76d345 Merge pull request #4 from fabiobaltieri/chre-uprev
    === updating cmsis (modules/hal/cmsis):
    HEAD is now at 093de61 DSP: Fix uninitialised variable references reported by GCC 12
    === updating edtt (tools/edtt):
    HEAD is now at 1ea61a3 Fixing error in DLE test cases
    === updating fatfs (modules/fs/fatfs):
    HEAD is now at a30531a zephyr: update include paths to use <zephyr/...>
    === updating hal_nordic (modules/hal/nordic):
    HEAD is now at fe0be3c drivers: nrf_802154: Update the IEEE 802.15.4 component
    === updating hal_st (modules/hal/st):
    HEAD is now at cccbc24 sensor: lsm6dso: Disable -Wmaybe-uninitialized for lsm6dso_mode_set
    === updating hal_wurthelektronik (modules/hal/wurthelektronik):
    HEAD is now at 24ca987 Initialized WE HAL module repository.
    === updating libmetal (modules/hal/libmetal):
    HEAD is now at 2f586b4 lib: update libmetal to SHA 23ba77941cf3
    === updating liblc3 (modules/lib/liblc3):
    HEAD is now at 448f3de Merge pull request #8 from carlescufi/rename
    === updating littlefs (modules/fs/littlefs):
    HEAD is now at ca583fd Merge tag 'v2.5.0' of https://github.com/littlefs-project/littlefs into zephyr
    === updating loramac-node (modules/lib/loramac-node):
    HEAD is now at ce57712f Don't memset the TXRX buffer when radio is set to receive mode (#1345)
    === updating lvgl (modules/lib/gui/lvgl):
    HEAD is now at 5ab83099 zephyr: add missing errno.h include
    === updating lz4 (modules/lib/lz4):
    HEAD is now at 8e303c2 zephyr: make this repo a zephyr module
    === updating mbedtls (modules/crypto/mbedtls):
    HEAD is now at 7fed49c9b CC3XX: Hardcode entry points for the CC3XX driver
    === updating mipi-sys-t (modules/debug/mipi-sys-t):
    HEAD is now at 0d521d8 mipi_syst_api.c: Change MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE macro.
    === updating nanopb (modules/lib/nanopb):
    HEAD is now at dc4deed Merge pull request #1 from pdgendt/zephyr
    === updating net-tools (tools/net-tools):
    HEAD is now at e0828aa net-setup: Add instructions for NAT and routing
    === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    HEAD is now at 65bc530 irq_ctrl: Add support for level interrupts
    === updating open-amp (modules/lib/open-amp):
    HEAD is now at 8d53544 lib: update open-amp lib to release v2022.04.0
    === updating picolibc (modules/lib/picolibc):
    HEAD is now at 04ada5951 Version 1.7.8
    === updating segger (modules/debug/segger):
    HEAD is now at d4e568a Resolve circular include dependencies
    === updating tinycbor (modules/lib/tinycbor):
    HEAD is now at 9e1f34b module: Deprecate TinyCBOR
    === updating tinycrypt (modules/crypto/tinycrypt):
    HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    === updating TraceRecorderSource (modules/debug/TraceRecorder):
    HEAD is now at 9893bf1 Merge pull request #8 from tleksell-pe/trace_recorder_4.6.3_update
    === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    HEAD is now at bcb53bc Merge pull request #4 from joerchan/tfm-library-mode-invalid-data-length-zephyr
    === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    HEAD is now at f4fc244 Merge pull request #5 from Vge0rge/increase_crypto_timeout
    === updating uoscore-uedhoc (modules/lib/uoscore-uedhoc):
    HEAD is now at e892019 Merge pull request #11 from rlubos/zephyr-integration
    === updating zcbor (modules/lib/zcbor):
    HEAD is now at 0556eda Update version from 0.5.99 to 0.6.0
    === updating zscilib (modules/lib/zscilib):
    HEAD is now at ca070dd Merge pull request #39 from microbuilder/fix_tests_cmake
    
    C:\SDK.V2.2.0\v2.2.0>pcf85063a

    It seems as though it has updated but im still not able to "include" the header file.

  • Hi Hassan,

    Thank you for contacting DevZone at NordicSemi.

    Hkhan7861 said:
    link I used in the post  was for the wrong west.yml file

    So which link you are using now to add lines to your west.yml?


    From your log, it looks like the driver is being pulled, but maybe its location is different. For example, zephyr is a directory within v2.2.0, and so is the nrfxlib. But the mcuboot is updated in ./bootloader/mcuboot, and so on is matter and other modules.


    So as per the west.yml, maybe required driver is pulled somewhere else and you are calling/expecting somewhere else.

    Maybe it helps locate the issue.

    Regards,
    Naeem

  • Hi Naeem

    Thank you for the assistance! I reinstalled VS code and the nrfconnect extension and attempted a west update and then a pristine build and fortunately I can use the driver now.  Thank you again

    Kind regards,

    Hassan

Related