New Driver nrf52840

I have a driver for the sensor tcs34725 and I wish to build a zephyr project from it when creating a project on nrf52840 how can I insert this driver file into my main.c ( currently I have added the sensor driver to the following directory nrf/drivers/sensors/tcs34725

Parents
  • thank you, I have modified te diver file and a zephyr driver, but now I'm getting following error

    [variant] Loaded new set of variants
    [kit] Successfully loaded 1 kits from C:\Users\ACER\AppData\Local\CMakeTools\cmake-tools-kits.json
    [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --version
    [proc] Executing command: C:\MinGW\bin\gcc.exe -v
    [proc] The command: C:\MinGW\bin\gcc.exe -v failed with error: Error: spawn C:\MinGW\bin\gcc.exe ENOENT
    [proc] The command: mingw32-make --version failed with error: Error: spawn mingw32-make ENOENT
    [cmakefileapi-driver] Removing c:/drivers/build/CMakeCache.txt
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [main] Configuring project: drivers 
    [proc] Executing command: C:\MinGW\bin\gcc.exe -v
    [proc] The command: C:\MinGW\bin\gcc.exe -v failed with error: Error: spawn C:\MinGW\bin\gcc.exe ENOENT
    [proc] The command: mingw32-make --version failed with error: Error: spawn mingw32-make ENOENT
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [proc] Executing command: C:\MinGW\bin\gcc.exe -v
    [proc] The command: C:\MinGW\bin\gcc.exe -v failed with error: Error: spawn C:\MinGW\bin\gcc.exe ENOENT
    [proc] The command: mingw32-make --version failed with error: Error: spawn mingw32-make ENOENT
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [proc] Executing command: C:\MinGW\bin\gcc.exe -v
    [proc] The command: C:\MinGW\bin\gcc.exe -v failed with error: Error: spawn C:\MinGW\bin\gcc.exe ENOENT
    [proc] The command: mingw32-make --version failed with error: Error: spawn mingw32-make ENOENT
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    [proc] Executing command: C:\MinGW\bin\gcc.exe -v
    [proc] The command: C:\MinGW\bin\gcc.exe -v failed with error: Error: spawn C:\MinGW\bin\gcc.exe ENOENT
    [proc] The command: mingw32-make --version failed with error: Error: spawn mingw32-make ENOENT
    [main] Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings.json, your Kit configuration or PATH variable. Error: No usable generator found.
    

  • And just to make sure, you are not getting these errors without modifying these driver files?

    Regards,

    Elfving

  • I have downloaded the v2.2.0 to this directory C:\v2.2.0, and I have a separate driver for a sensor file on this directory C:\drivers, I can run the blinky sample and its working correctly, but when I change the cmd directory to C:\drivers and tried to build sensor driver file, it shows the above error

Reply Children
Related