I tried to run the adc_dt code sample in frdm_mcxw72 board, but it can't be build successfully even i already added the overlay file in the device tree folder and modified the board name in Cmakelist file. it always prompt error: #error "No suitable devicetree overlay specified" during building . can you help me find the cause, thanks in advance!
Hello RomanVR,
i put the the overlay file in the position. but it still can't work. you can find more information about my workbench in below snapshot. i used the zephyr version is V4.4.0. any finding please me know.
Best regards!
Hello @anliu114036, hope you are doing well.
Would you please share which Zephyr version are you working on? Also, please clarify if you are using MCUXpresso for VS Code extension to build the example.
In the meantime, to ease the process, make sure that your overlay is created inside the "boards" folder that should be inside of your project files; make sure that your overlay file is named as "frdm_mcxw72.overlay", following these two steps will make Zephyr fetch your overlay in build process without the need of setting its path explicitly in CMake.
If you are using our MCUXpresso for VS Code extension, your project view should look as the image below:
Please let me know if this helps.