Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
kconfig warning on small overlay file
Post Flair (click to view more posts with a particular flair)
Post Body

i have this overlay file for a simple push button:

/ {
    gpio_keys {
        butn: butn {
            gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
        };
    };

    aliases {
        butn0 = &butn;
    };
};

but when i build i get the following warning and terminate:

[0/1] Re-running CMake...
Including boilerplate (Zephyr base (cached)): /home/ajit/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/ajit/work/uc/app
-- Zephyr version: 3.0.0-rc1 (/home/ajit/zephyrproject/zephyr), build: v3.0.0-rc1-102-gb374dc6a7fd8
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: stm32_min_dev_blue
-- Cache files will be written to: /home/ajit/.cache/zephyr
-- Found host-tools: zephyr 0.13.2 (/home/ajit/zephyr-sdk-0.13.2)
-- Found dtc: /home/ajit/zephyr-sdk-0.13.2/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.13.2 (/home/ajit/zephyr-sdk-0.13.2)
-- Found BOARD.dts: /home/ajit/zephyrproject/zephyr/boards/arm/stm32_min_dev/stm32_min_dev_blue.dts
-- Found devicetree overlay: /home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay
-- Generated zephyr.dts: /home/ajit/work/uc/app/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/ajit/work/uc/app/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /home/ajit/work/uc/app/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /home/ajit/work/uc/app/build/zephyr/dts.cmake

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:1: warning: ignoring malformed line '/*'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:2: warning: ignoring malformed line ' * Copyright (c) 2021 Nordic Semiconductor ASA'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:3: warning: ignoring malformed line ' * SPDX-License-Identifier: Apache-2.0'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:4: warning: ignoring malformed line ' */'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:6: warning: ignoring malformed line '/* This devicetree overlay file will be automatically picked by the Zephyr'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:7: warning: ignoring malformed line ' * build system when building the sample for the nucleo_f302r8 board. It shows'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:8: warning: ignoring malformed line ' * how the example-application can be built on sample boards already provided'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:9: warning: ignoring malformed line ' * by Zephyr.'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:10: warning: ignoring malformed line ' */'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:12: warning: ignoring malformed line '/ {'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:13: warning: ignoring malformed line ' examplesensor0: examplesensor_0 {'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:14: warning: ignoring malformed line '     compatible = "zephyr,examplesensor";'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:15: warning: ignoring malformed line '     label = "EXAMPLESENSOR_0";'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:16: warning: ignoring malformed line '     input-gpios = <&gpioc 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:17: warning: ignoring malformed line ' };'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:18: warning: ignoring malformed line '};'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:20: warning: ignoring malformed line '&gpioc {'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:21: warning: ignoring malformed line ' status = "okay";'

/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay:22: warning: ignoring malformed line '};'
Parsing /home/ajit/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/ajit/zephyrproject/zephyr/boards/arm/stm32_min_dev/stm32_min_dev_blue_defconfig'
Merged configuration '/home/ajit/work/uc/app/prj.conf'
Merged configuration '/home/ajit/work/uc/app/boards/stm32_min_dev_blue.overlay'

error: Aborting due to Kconfig warnings

i also just raw copied and pasted the zephyr provided example application to see the same result!

what is going wrong?

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
Yes
Total Karma
4,651
Link Karma
1,787
Comment Karma
2,631
Profile updated: 6 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago