This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems adding MAX6675 Device

Hi,

I am having problems adding the MAX6675 device.

I using this code

https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/sensor/max6675

and this prj.conf file.

CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_SPI=y
CONFIG_SENSOR=y
CONFIG_MAX6675=y

and this overlay file

&spi3 {
	status = "ok";
	sck-pin = <10>;
	mosi-pin = <11>;
	miso-pin = <12>;
	ss-pin = <13>;
	
	max6675@0 {
		compatible = "maxim,max6675";
		reg = <0>;
		spi-max-frequency = <4300000>;
		label = "MAX6675";
	};
};

and try to build using the command line

cmake -GNinja -DBOARD=nrf9160dk_nrf9160 -DCONF_FILE="prj.conf"  ..

I get an error

prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol MAX6675

I have not been looking at this for a while so I apologise i advance if things have moved on in the previous months and Im missing something obvious.

Rod

Related