<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Running DHT11 sensor on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60737/running-dht11-sensor-on-nrf9160</link><description>I am trying to run DHT sensor on the nrf9160 using the sample provided by zephyr (can be found under zephyr&amp;gt;samples&amp;gt;sensor&amp;gt;dht). The code was meant to run on nrf52. Is there any documentation for running on nrf9160.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Apr 2020 11:02:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60737/running-dht11-sensor-on-nrf9160" /><item><title>RE: Running DHT11 sensor on nRF9160</title><link>https://devzone.nordicsemi.com/thread/247054?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 11:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff02f49-85ff-4551-8f13-65e6cf4d6112</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Try deleting your build folder first.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll get a compilation error, as it cannot find the device tree for the dht:&lt;/p&gt;
&lt;p&gt;../src/main.c:35:28: error: &amp;#39;DT_INST_0_AOSONG_DHT_LABEL&amp;#39; undeclared (first use in this function)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In that case, copy samples/sensor/dht/boards/nrf52_pca10040.overlay to samples/sensor/dht/nrf9160_pca10090ns.overlay (provided that this is the board you&amp;#39;re running) and reconfigure the project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running DHT11 sensor on nRF9160</title><link>https://devzone.nordicsemi.com/thread/246910?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 14:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae694be-d985-410c-9e1d-c967dc859e29</guid><dc:creator>AMG</dc:creator><description>&lt;p&gt;Yes, It doesn&amp;#39;t build with secure or ns. It goes into a loop.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- west build: build configuration:
       source directory: /home/ahmed/v1.2.0/zephyr/samples/sensor/dht
       build directory: /home/ahmed/v1.2.0/zephyr/samples/sensor/dht/build (created)
       BOARD: nrf9160_pca10090ns (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.1.99
-- Found PythonInterp: /usr/bin/python3 (found suitable version &amp;quot;3.7.5&amp;quot;, minimum required is &amp;quot;3.6&amp;quot;) 
-- Selected BOARD nrf9160_pca10090ns
-- Found west: /home/ahmed/.local/bin/west (found suitable version &amp;quot;0.7.2&amp;quot;, minimum required is &amp;quot;0.6.0&amp;quot;)
-- Loading /home/ahmed/v1.2.0/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
Devicetree configuration written to /home/ahmed/v1.2.0/zephyr/samples/sensor/dht/build/zephyr/include/generated/devicetree.conf
Parsing /home/ahmed/v1.2.0/zephyr/Kconfig
/home/ahmed/v1.2.0/nrf/lib/fprotect/Kconfig:20: WARNING: dt_int_val is deprecated.
/home/ahmed/v1.2.0/bootloader/mcuboot/zephyr/Kconfig:37: WARNING: dt_int_val is deprecated.
Loaded configuration &amp;#39;/home/ahmed/v1.2.0/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig&amp;#39;
Merged configuration &amp;#39;/home/ahmed/v1.2.0/zephyr/samples/sensor/dht/prj.conf&amp;#39;
Configuration saved to &amp;#39;/home/ahmed/v1.2.0/zephyr/samples/sensor/dht/build/zephyr/.config&amp;#39;
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
-- Cache files will be written to: /home/ahmed/.cache/zephyr
CMake Error at ../../../cmake/app/boilerplate.cmake:66 (add_custom_target):
  add_custom_target cannot create target &amp;quot;code_data_relocation_target&amp;quot;
  because another target with the same name already exists.  The existing
  target is a custom target created in source directory
  &amp;quot;/home/ahmed/v1.2.0/zephyr/samples/sensor/dht&amp;quot;.  See documentation for
  policy CMP0002 for more details.
Call Stack (most recent call first):
  ../../../drivers/sensor/dht/CMakeLists.txt:8 (include)


-- Zephyr version: 2.1.99
CMake Error at ../../../cmake/app/boilerplate.cmake:111 (add_custom_target):
  add_custom_target cannot create target &amp;quot;pristine&amp;quot; because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory &amp;quot;/home/ahmed/v1.2.0/zephyr/samples/sensor/dht&amp;quot;.
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  ../../../drivers/sensor/dht/CMakeLists.txt:8 (include)


-- Selected BOARD nrf9160_pca10090ns
-- Found west: /home/ahmed/.local/bin/west (found suitable version &amp;quot;0.7.2&amp;quot;, minimum required is &amp;quot;0.6.0&amp;quot;)
-- Loading /home/ahmed/v1.2.0/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
Devicetree configuration written to /home/ahmed/v1.2.0/zephyr/samples/sensor/dht/build/zephyr/drivers/sensor/dht/zephyr/include/generated/devicetree.conf
CMake Error at ../../../cmake/kconfig.cmake:80 (add_custom_target):
  add_custom_target cannot create target &amp;quot;menuconfig&amp;quot; because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory &amp;quot;/home/ahmed/v1.2.0/zephyr/samples/sensor/dht&amp;quot;.
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  ../../../cmake/app/boilerplate.cmake:461 (include)
  ../../../drivers/sensor/dht/CMakeLists.txt:8 (include)


CMake Error at ../../../cmake/kconfig.cmake:80 (add_custom_target):
  add_custom_target cannot create target &amp;quot;guiconfig&amp;quot; because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory &amp;quot;/home/ahmed/v1.2.0/zephyr/samples/sensor/dht&amp;quot;.
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  ../../../cmake/app/boilerplate.cmake:461 (include)
  ../../../drivers/sensor/dht/CMakeLists.txt:8 (include)


CMake Error at ../../../cmake/kconfig.cmake:80 (add_custom_target):
  add_custom_target cannot create target &amp;quot;hardenconfig&amp;quot; because another
  target with the same name already exists.  The existing target is a custom
  target created in source directory
  &amp;quot;/home/ahmed/v1.2.0/zephyr/samples/sensor/dht&amp;quot;.  See documentation for
  policy CMP0002 for more details.
Call Stack (most recent call first):
  ../../../cmake/app/boilerplate.cmake:461 (include)
  ../../../drivers/sensor/dht/CMakeLists.txt:8 (include)

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running DHT11 sensor on nRF9160</title><link>https://devzone.nordicsemi.com/thread/246896?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 14:00:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae483e6-1d01-41d9-80b0-aa300b1253a3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The samples in zephyr/samples is not guaranteed to run on all devices, as these are not tested on all combinations of devices.&lt;/p&gt;
&lt;p&gt;Have you tried running it on the nRF9160, either with board nrf9160_pca10090 or nrf9160_pca10090ns?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>