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

Parents Reply
  • Hi Kenneth,

    Sorry, yes makes sense. I was assuming that since it was shown here

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

    that it was part of nrf connect release too. 

    When the new release does come out, can you suggest the best way of updating? I am using a Mac and have read various things, some suggesting that the nRF Connect Tool Chain manger works and some that don't.

    I have tried it and it seems to install the code correctly but all the links/paths are not updated.

    For a Mac, what is the easiest way of updating?

    Thanks,

    Rod 

Children
Related