Hi,
I am experiencing a new build error after updating some application code, but my co-workers are not experiencing this same error on their machines and I cannot seem to mitigate it on mine. I pulled in some new LED driver code for our project that uses a MAX8647 LED Driver user-built zephyr driver. The driver has been placed in a local folder in the project folder (as we are not yet ready to integrate into the main Zephyr branch). As mentioned, these files build and work properly on two other co-workers machines/environments, so it seems something is preventing my setup from properly loading this driver. The build output can be seen below with only the project filepath editted. The MAX8647 driver files are located in “…\myprojectdir\drivers\led”. I know that this is something with the MAX8647 driver because if I set CONFIG_MAX8647=n in my prj.conf file, then I get a different output as also seen below. After multiple different attempts, I am still unable to get my project to build again.
I have attempted:
- Re-installing PlatformIO extension in VSCode
- Removing the main .platformio folder and letting it be re-populated.
- Replacing the application files.
- Ensuring my includePath is updated with the drivers/led path in c_cpp_properties.json.
Build Output:
"Error: Processing nrf52833_dk (platform: nordicnrf52@7.1.0; board: nrf52833_dk; framework: zephyr)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: Nordic nRF52 (7.1.0) > Nordic nRF52833-DK
HARDWARE: NRF52833 64MHz, 128KB RAM, 512KB Flash
DEBUG: Current (jlink) On-board (cmsis-dap, jlink) External (blackmagic, stlink)
PACKAGES:
- framework-zephyr @ 2.20500.210226 (2.5.0)
- framework-zephyr-canopennode @ 0.0.0-alpha+sha.468d350028
- framework-zephyr-civetweb @ 0.0.0-alpha+sha.e6903b80c0
- framework-zephyr-cmsis @ 0.0.0-alpha+sha.c3bd2094f9
- framework-zephyr-fatfs @ 0.0.0-alpha+sha.1d1fcc725a
- framework-zephyr-hal-nordic @ 0.0.0-alpha+sha.f0d54d8449
- framework-zephyr-hal-st @ 0.0.0-alpha+sha.b52fdbf4b6
- framework-zephyr-libmetal @ 0.0.0-alpha+sha.9d4ee2c3cf
- framework-zephyr-littlefs @ 0.0.0-alpha+sha.9e4498d1c7
- framework-zephyr-loramac-node @ 0.0.0-alpha+sha.3f545d76a2
- framework-zephyr-lvgl @ 0.0.0-alpha+sha.31acbaa36e
- framework-zephyr-mbedtls @ 0.0.0-alpha+sha.24d84ecff1
- framework-zephyr-mcuboot @ 0.0.0-alpha+sha.3fc59410b6
- framework-zephyr-mcumgr @ 0.0.0-alpha+sha.43845e883f
- framework-zephyr-mipi-sys-t @ 0.0.0-alpha+sha.75e671550a
- framework-zephyr-open-amp @ 0.0.0-alpha+sha.de1b85a130
- framework-zephyr-openthread @ 0.0.0-alpha+sha.1d668284a0
- framework-zephyr-segger @ 0.0.0-alpha+sha.38c79a447e
- framework-zephyr-sof @ 0.0.0-alpha+sha.b5b772dd61
- framework-zephyr-tfm-mcuboot @ 1.7.0-rc1
- framework-zephyr-tinycbor @ 0.0.0-alpha+sha.40daca97b4
- framework-zephyr-tinycrypt @ 0.0.0-alpha+sha.3e9a49d267
- framework-zephyr-trusted-firmware-m @ 0.0.0-alpha+sha.96340fb6c0
- tool-cmake @ 3.16.4
- tool-dtc @ 1.4.7
- tool-ninja @ 1.9.0
- tool-sreccat @ 1.164.0 (1.64)
- toolchain-gccarmnoneeabi @ 1.80201.190214 (8.2.1)
Error: Couldn’t find target config target-………__myprojectdir__drivers__led-3ae2b57157f6097099b8.json
==================================================================================================== [FAILED] Took 2.71 seconds ===================================================================================================="
Build output when CONFIG_MAX8647=n:
“CMake Error at C:/Users/me/.platformio/packages/framework-zephyr/cmake/extensions.cmake:416 (add_library):
No SOURCES given to target:
………__myprojectdir__drivers__led”
I appreciate any assistance that can be provided.
Thanks,
Jared