Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sht3xd build error on olimexino_stm32 #21597

Closed
boonpin1975 opened this issue Dec 27, 2019 · 2 comments
Closed

sht3xd build error on olimexino_stm32 #21597

boonpin1975 opened this issue Dec 27, 2019 · 2 comments

Comments

@boonpin1975
Copy link

host : Ubuntu 18.04 LTS
board olimexino_stm32
sensor : sht3xd

west build -p auto -b olimexino_stm32 samples/sensor/sht3xd

error messages :

/zephyrproject/zephyr/drivers/sensor/sht3xd/sht3xd.c:228:14: error: 'DT_INST_0_SENSIRION_SHT3XD_BUS_NAME' undeclared here (not in a function); did you mean 'DT_INST_0_ZEPHYR_MMC_SPI_SLOT_BUS_NAME'?
.bus_name = DT_INST_0_SENSIRION_SHT3XD_BUS_NAME,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DT_INST_0_ZEPHYR_MMC_SPI_SLOT_BUS_NAME
/zephyrproject/zephyr/drivers/sensor/sht3xd/sht3xd.c:232:18: error: 'DT_INST_0_SENSIRION_SHT3XD_BASE_ADDRESS' undeclared here (not in a function); did you mean 'DT_INST_0_MMIO_SRAM_BASE_ADDRESS'?
.base_address = DT_INST_0_SENSIRION_SHT3XD_BASE_ADDRESS,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DT_INST_0_MMIO_SRAM_BASE_ADDRESS
In file included from /zephyrproject/zephyr/drivers/sensor/sht3xd/sht3xd.c:7:
/zephyrproject/zephyr/drivers/sensor/sht3xd/sht3xd.c:238:30: error: 'DT_INST_0_SENSIRION_SHT3XD_LABEL' undeclared here (not in a function); did you mean 'DT_INST_0_ST_STM32_SPI_LABEL'?
DEVICE_AND_API_INIT(sht3xd0, DT_INST_0_SENSIRION_SHT3XD_LABEL,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/device.h:106:11: note: in definition of macro 'DEVICE_AND_API_INIT'
.name = drv_name, .init = (init_fn),
^~~~~~~~
ninja: build stopped: subcommand failed.

@ydamigos
Copy link
Collaborator

Hi @boonpin1975,
Did you use a DT overlay? If not, you should use one. There are some overlay examples for other boards in samples/sensor/sht3xd.

@carlescufi
Copy link
Member

Closing as the answer provided is accurate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants