<?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>BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78190/bme280-with-nrf5340-display-t-p-h-problem</link><description>Hello everybody, 
 I&amp;#39;m having a problem to display the temperature, pressure and humidity. 
 i followed this tutorial on a NRF5340 https://devzone.nordicsemi.com/nordic/b/archives/posts/nrf-connect-sdk-tutorial---part-3-temporary 
 in my case i&amp;#39;m using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Aug 2021 09:11:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78190/bme280-with-nrf5340-display-t-p-h-problem" /><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/324407?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 09:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea33197-2af5-4859-9236-2de0de9dd765</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;the final answer for the display of this problem was related to the voltage&amp;nbsp;&lt;br /&gt;&lt;span&gt;try to double check with a voltage meter&amp;nbsp;that the input voltage is 3V&lt;br /&gt; Find a pin labeled &amp;quot;VDD&amp;quot;, and try that if you measure it to be 3.3V.&lt;br /&gt;&lt;/span&gt;in this case the needed voltage is 3.3V&lt;br /&gt;make sure your pins wiring is good&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/324133?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 07:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a7b39b0-f4eb-431a-9da1-0cf1532a8f5a</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hello Helsing,&lt;br /&gt;thank you very much&amp;nbsp;&lt;br /&gt;i&amp;#39;m recently having an issue with the display of the values of the BME280&lt;br /&gt;well it&amp;#39;s displaying this error when the sensor is connected to the Kit&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1628518317407v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and it&amp;#39;s displaying this error with the other address when it&amp;#39;s not connected&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pastedimage1628522548401v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Knowing that :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0x0BAD0001 means &amp;quot;Internal Error&amp;quot; in the I2C driver.&lt;/p&gt;
&lt;p&gt;0x0BAE0001 means &amp;quot;Address not acknowledged&amp;quot; in the I2C driver.&lt;br /&gt;and doubting that the issue is hardware&amp;nbsp;&lt;span&gt;that leads me to believe that the issue may be with how the sensor is wired to the board, or setup in some way, causing an error in the driver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for me i did the wiring like this&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P1.02 to SDI&lt;br /&gt;P1.03 to SCK&lt;br /&gt;GND to SDO&lt;br /&gt;GND to GND&lt;br /&gt;Vin 3-5v to VIN&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;is there a pre-config to do or some settings to fix before running the sensor ?&lt;br /&gt;&lt;br /&gt;can you please help me with the wiring&amp;nbsp;&lt;br /&gt;knowing that you already tried the sensor, how did it go with you please ?&lt;br /&gt;can you help me please&amp;nbsp;&lt;br /&gt;i would be very grateful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/324092?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 21:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8673814-6fe2-4653-845c-d46cad286b59</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Thank you for the update. I am happy to hear it is working now. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/324074?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 16:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:080d2a68-2193-45c1-8531-895c6bab0c69</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hello Helsing,&lt;br /&gt;the error related to the devicetree could be resolved by putting all the project substances in the same version of SDK&lt;br /&gt;the building is breakable if the main and the nrf**.overlay are not on the same version&amp;nbsp;&lt;br /&gt;thank you for your help&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323960?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 10:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aca2416-da6b-4e98-b095-bba362a0615b</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hello Helsing,&lt;br /&gt;i succeeded to resolve the error of processing&amp;nbsp;&lt;br /&gt;i reinstalled the SDK and the toolchain manager&amp;nbsp;&lt;br /&gt;i reconfigured my environment&amp;nbsp;&lt;br /&gt;and then i got to deal with the device tree issue so i putted the pin config aka this one&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
 status = &amp;quot;okay&amp;quot;;
 sda-pin = &amp;lt; 34 &amp;gt;;
 scl-pin = &amp;lt; 35 &amp;gt;;
    clock-frequency = &amp;lt;100000&amp;gt;;
 bme280@76 {
  compatible = &amp;quot;bosch,bme280&amp;quot;;
  reg = &amp;lt;0x76&amp;gt;;
  label = &amp;quot;BME280&amp;quot;;
 };
};
&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;on the overlay file &amp;quot;nrf5340dk_nrf5340_cpuapp.overlay&amp;quot;&lt;/p&gt;
&lt;p&gt;and the build was successful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323768?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 13:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea72123f-c962-41d6-8fda-d07a32ef2d21</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628254537208v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;in fact the error that i posted is related to this file and exactly to the bloc in grey on nvic.h file&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;nbsp; C:/Users/rzaafouri/ncs/v1.5.1/zephyr/include/arch/arm/aarch32/cortex_m/nvic.h:15:44: error: pasting &amp;quot;)&amp;quot; and &amp;quot;_P_arm_num_irq_priority_bits&amp;quot; does not give a valid preprocessing token&amp;nbsp; &amp;quot;&lt;/p&gt;
&lt;p&gt;C:/Users/rzaafouri/ncs/v1.5.1/zephyr/include/arch/arm/aarch32/cortex_m/nvic.h:15:32: error: &amp;#39;arm_v8m_nvic&amp;#39; undeclared (first use in this function)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;C:/Users/rzaafouri/ncs/v1.5.1/zephyr/include/devicetree.h:463:48: error: expected &amp;#39;)&amp;#39; before &amp;#39;_P_arm_num_irq_priority_bits&amp;#39;&lt;/p&gt;
&lt;p&gt;C:/Users/rzaafouri/ncs/v1.5.1/zephyr/include/arch/arm/aarch32/exc.h:24:36: note: to match this &amp;#39;(&amp;#39;&lt;/p&gt;
&lt;p&gt;1&amp;gt; C:/Users/rzaafouri/ncs/v1.5.1/zephyr/include/arch/arm/aarch32/cortex_m/nvic.h:15:28: error: missing binary operator before token &amp;quot;(&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m getting these couple of errors do you know if there&amp;#39;s a link between them&amp;nbsp;&lt;br /&gt;because my error is certainly a processing error&amp;nbsp;&lt;br /&gt;can you help with this please&lt;/p&gt;
&lt;p&gt;knowing that i just tried to open another project from a different directory then the BME280 project&amp;nbsp;&lt;br /&gt;it went all on collapse !&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;can you please help me please&amp;nbsp;&lt;br /&gt;&amp;nbsp;i really need help&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323759?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5392aa1-fd87-4cc1-b63c-9d9d46db70b0</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;yes when my config was right i used to have the line just like the image you posted&amp;nbsp;&lt;br /&gt;and speaking about my overlay file it looks just like this&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sda-pin = &amp;lt; 34 &amp;gt;;
	scl-pin = &amp;lt; 35 &amp;gt;;
    clock-frequency = &amp;lt;100000&amp;gt;;  
	
	/* The I2C address could be one of two, here 0x76 is assumed */
	bme280@76 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x76&amp;gt;;
		label = &amp;quot;BME280&amp;quot;;
	};
};

&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the stars i putted the when i posted my question to make it easy for you to stop the right line ( i said &amp;quot;&lt;span&gt;the line 698 in the&amp;nbsp;nrf5340dk_nrf5340_cpuapp.dts.pre.tmp is the line 8 below and so on&lt;/span&gt;&amp;quot;)&lt;/p&gt;
&lt;p&gt;so my overlay was good from the beginning&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323754?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5f48ad7-13cf-4b94-b76e-6b03a3a6e373</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;I have a feeling that your overlay file is not working properly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, I just noticed that four rows with &amp;#39;*&amp;#39; in the file &lt;em&gt;nrf5340dk_nrf5340_cpuapp.dts.pre.tmp&lt;/em&gt; in your build folder.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628253248143v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is this something you added? Or do you perhaps have some remains of old comments in your overlay file? Perhaps cleaning up the overlay file will work?&lt;/p&gt;
&lt;p&gt;In your text editor, are you able to see these lines grayed out? If your device tree(and configs) is set up properly you should see something like the image below (This method might not be 100% accurate, though it could help indicate when something is wrong.)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628253627578v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323750?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdfb8f0c-f618-4d87-b0cf-eecb14afdffd</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;i just tried to create another project but from another directory this time&amp;nbsp;&lt;br /&gt;i think i broke something in the processing operation&amp;nbsp;&lt;br /&gt;but the thing is that in my project BME280&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1628253226104v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;the DT_NODE_HAS_STATUS function became grey&amp;nbsp;&lt;br /&gt;and the other one appeared&amp;nbsp;&lt;br /&gt;so i think even by correcting this error&amp;nbsp;&lt;br /&gt;i will get the classic error of &amp;quot;devicetree has no enabled nodes&amp;quot;&lt;/p&gt;
&lt;p&gt;i don&amp;#39;t know what to do actually, i tried alot of methods but the error doesn&amp;#39;t go&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;do you recommend some team members that can help me&amp;nbsp;&lt;br /&gt;i&amp;#39;m really stuck and it&amp;#39;s getting complicated&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323738?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7417d4cc-7070-42b8-8efc-eed54036b332</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;When did this start appearing? What do you do in order for this to appear. Do you remember any recent changes you made?&lt;/p&gt;
&lt;p&gt;I am not familiar with this, though it looks like something that would need to be fixed. I suggest you create a new ticket, and someone else from our team will be assigned to the task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323730?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0909962-94e1-4e3a-841c-4069ebbddfce</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;for the moment my config looks just like this but i&amp;#39;m getting&amp;nbsp;&lt;br /&gt;&lt;span&gt;&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;span&gt;*** Booting Zephyr OS build v2.4.99-ncs2 ***&lt;/span&gt;&lt;br /&gt;&lt;span&gt;No device &amp;quot;BME280&amp;quot; found; did initialization fail? &amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323729?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c88b3a2-5425-4e69-a8c2-4f5866ef3cc8</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hi Helsing i&amp;#39;m having another problem .i think it&amp;#39;s a processing error i think because i have with all of the projects&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;do you have an idea what does it refers to ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;1&amp;gt; C:\Users\rzaafouri\ncs\v1.5.1-rc1\toolchain\opt/bin/arm-none-eabi-gcc -DBUILD_VERSION=v2.4.99-ncs2 -DKERNEL -DNRF5340_XXAA_APPLICATION -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../../../kernel/include -I../../../arch/arm/include -I../../../include -Izephyr/include/generated -I../../../soc/arm/nordic_nrf/nrf53 -IC:/Users/rzaafouri/ncs/v1.5.1/nrf/include -IC:/Users/rzaafouri/ncs/v1.5.1/modules/hal/nordic/nrfx -IC:/Users/rzaafouri/ncs/v1.5.1/modules/hal/nordic/nrfx/drivers/include -IC:/Users/rzaafouri/ncs/v1.5.1/modules/hal/nordic/nrfx/mdk -I../../../modules/hal_nordic/nrfx/. -IC:/Users/rzaafouri/ncs/v1.5.1/modules/hal/cmsis/CMSIS/Core/Include -isystem ../../../lib/libc/minimal/include -isystem c:/users/rzaafouri/ncs/v1.5.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include -isystem c:/users/rzaafouri/ncs/v1.5.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/include-fixed -isystem C:/Users/rzaafouri/ncs/v1.5.1/nrfxlib/crypto/nrf_cc312_platform/include -Os -imacros C:/Users/rzaafouri/ncs/v1.5.1/zephyr/samples/hello_world/build_nrf5340dk_nrf5340_cpuapp/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mcpu=cortex-m33 -mthumb -mabi=aapcs -imacros C:/Users/rzaafouri/ncs/v1.5.1/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Users/rzaafouri/ncs/v1.5.1/zephyr/samples/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/rzaafouri/ncs/v1.5.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/rzaafouri/ncs/v1.5.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MF C:/Users/rzaafouri/ncs/v1.5.1/zephyr/samples/hello_world/build_nrf5340dk_nrf5340_cpuapp/zephyr\CMakeFiles\offsets.dir\arch\arm\core\offsets\offsets.c.obj.d -fno-diagnostics-show-caret -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c C:/Users/rzaafouri/ncs/v1.5.1/zephyr/arch/arm/core/offsets/offsets.c
1&amp;gt; In file included from ../../../include/arch/arm/aarch32/arch.h:20,
1&amp;gt;                  from ../../../include/arch/cpu.h:19,
1&amp;gt;                  from ../../../include/kernel_includes.h:33,
1&amp;gt;                  from ../../../include/kernel.h:17,
1&amp;gt;                  from C:/Users/rzaafouri/ncs/v1.5.1/zephyr/arch/arm/core/offsets/offsets_aarch32.c:28,
1&amp;gt;                  from C:/Users/rzaafouri/ncs/v1.5.1/zephyr/arch/arm/core/offsets/offsets.c:12:
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:15:21: warning: implicit declaration of function &amp;#39;DT_INST&amp;#39; [-Wimplicit-function-declaration]
1&amp;gt; ../../../include/devicetree.h:2176:24: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:27: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:35: note: in expansion of macro &amp;#39;NVIC_NODEID&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:24:41: note: in expansion of macro &amp;#39;NUM_IRQ_PRIO_BITS&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:60:31: note: in expansion of macro &amp;#39;Z_EXC_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/asm_inline_gcc.h:62:9: note: in expansion of macro &amp;#39;_EXC_IRQ_DEFAULT_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:15:44: error: pasting &amp;quot;)&amp;quot; and &amp;quot;_P_arm_num_irq_priority_bits&amp;quot; does not give a valid preprocessing token
1&amp;gt; ../../../include/devicetree.h:2176:24: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:27: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:35: note: in expansion of macro &amp;#39;NVIC_NODEID&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:24:41: note: in expansion of macro &amp;#39;NUM_IRQ_PRIO_BITS&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:60:31: note: in expansion of macro &amp;#39;Z_EXC_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/asm_inline_gcc.h:62:9: note: in expansion of macro &amp;#39;_EXC_IRQ_DEFAULT_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:15:32: error: &amp;#39;arm_v8m_nvic&amp;#39; undeclared (first use in this function)
1&amp;gt; ../../../include/devicetree.h:2176:24: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:27: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:35: note: in expansion of macro &amp;#39;NVIC_NODEID&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:24:41: note: in expansion of macro &amp;#39;NUM_IRQ_PRIO_BITS&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:60:31: note: in expansion of macro &amp;#39;Z_EXC_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/asm_inline_gcc.h:62:9: note: in expansion of macro &amp;#39;_EXC_IRQ_DEFAULT_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:15:32: note: each undeclared identifier is reported only once for each function it appears in
1&amp;gt; ../../../include/devicetree.h:2176:24: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:27: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:35: note: in expansion of macro &amp;#39;NVIC_NODEID&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:24:41: note: in expansion of macro &amp;#39;NUM_IRQ_PRIO_BITS&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:60:31: note: in expansion of macro &amp;#39;Z_EXC_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/asm_inline_gcc.h:62:9: note: in expansion of macro &amp;#39;_EXC_IRQ_DEFAULT_PRIO&amp;#39;
1&amp;gt; ../../../include/devicetree.h:463:48: error: expected &amp;#39;)&amp;#39; before &amp;#39;_P_arm_num_irq_priority_bits&amp;#39;
1&amp;gt; ../../../include/devicetree.h:2176:30: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:27: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:24:41: note: in expansion of macro &amp;#39;NUM_IRQ_PRIO_BITS&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:60:31: note: in expansion of macro &amp;#39;Z_EXC_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/asm_inline_gcc.h:62:9: note: in expansion of macro &amp;#39;_EXC_IRQ_DEFAULT_PRIO&amp;#39;
1&amp;gt; In file included from ../../../include/arch/arm/aarch32/arch.h:26,
1&amp;gt;                  from ../../../include/arch/cpu.h:19,
1&amp;gt;                  from ../../../include/kernel_includes.h:33,
1&amp;gt;                  from ../../../include/kernel.h:17,
1&amp;gt;                  from C:/Users/rzaafouri/ncs/v1.5.1/zephyr/arch/arm/core/offsets/offsets_aarch32.c:28,
1&amp;gt;                  from C:/Users/rzaafouri/ncs/v1.5.1/zephyr/arch/arm/core/offsets/offsets.c:12:
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:24:36: note: to match this &amp;#39;(&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/exc.h:60:31: note: in expansion of macro &amp;#39;Z_EXC_PRIO&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/asm_inline_gcc.h:62:9: note: in expansion of macro &amp;#39;_EXC_IRQ_DEFAULT_PRIO&amp;#39;
1&amp;gt; In file included from ../../../include/arch/arm/aarch32/arch.h:20,
1&amp;gt;                  from ../../../include/arch/cpu.h:19,
1&amp;gt;                  from ../../../include/kernel_includes.h:33,
1&amp;gt;                  from ../../../include/kernel.h:17,
1&amp;gt;                  from C:/Users/rzaafouri/ncs/v1.5.1/zephyr/arch/arm/core/offsets/offsets_aarch32.c:28,
1&amp;gt;                  from C:/Users/rzaafouri/ncs/v1.5.1/zephyr/arch/arm/core/offsets/offsets.c:12:
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:15:28: error: missing binary operator before token &amp;quot;(&amp;quot;
1&amp;gt; ../../../include/devicetree.h:2176:24: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:27: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/nvic.h:22:35: note: in expansion of macro &amp;#39;NVIC_NODEID&amp;#39;
1&amp;gt; ../../../include/arch/arm/aarch32/cortex_m/cmsis.h:96:25: note: in expansion of macro &amp;#39;NUM_IRQ_PRIO_BITS&amp;#39;
Build failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323727?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 12:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5baafd0e-fe10-45ef-b581-6aec1a190cb4</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Rihab,&lt;/p&gt;
&lt;p&gt;What does your config file currently look like? Have you tried using these four configs at the same time?&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;code&gt;CONFIG_SENSOR=y&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;CONFIG_BME280=y&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;CONFIG_I2C=y&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;CONFIG_I2C_1=y&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;When using these configs, I can read this in the terminal:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;*** Booting Zephyr OS build v2.4.99-ncs2&amp;nbsp; ***&lt;br /&gt;&lt;br /&gt;Found device &amp;quot;BME280&amp;quot;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;/div&gt;
&lt;div&gt;This happens even though I do not have any sensor connected at the moment.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323561?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 13:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9709eab6-da80-4ae0-b0b5-2f5c12435133</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;very kind from you&amp;nbsp;&lt;br /&gt;thank you very much&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323560?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 13:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b8ea53a-3b0e-40fb-98ad-b5fcb5b839b7</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;i tried the modifications&amp;nbsp;&lt;br /&gt;nothing has changed&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323556?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 13:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f113fb29-44c3-4581-b8f4-18ab2f0da54f</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;I will be offline for a few hours, checking back later. I think I have the BME280 sensor board somewhere. If can find it I will try setting up the sensor myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323555?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 13:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de3e15e1-86b4-430c-90a0-a4700182a20a</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;tools like what ?&amp;nbsp;&lt;br /&gt;how can i check the activity on i2c ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323554?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 13:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84ad681d-6a65-4747-b933-fccaa326ca1e</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Thank you for the updates.&lt;/p&gt;
&lt;p&gt;Do you have any tools available for checking whether there is any activity on the I&lt;sup&gt;2&lt;/sup&gt;C lines? Do you see anything now?&lt;/p&gt;
&lt;p&gt;Anyways, here is something to try. Try adding the following to &lt;em&gt;prj.conf&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;CONFIG_I2C=y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I see others adding this line too, though I have not yet checked whether it is necessary or not:&lt;br /&gt;&lt;code&gt;CONFIG_SENSOR=y&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323527?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 11:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28c1fc20-6c5f-4e02-b7ce-cb559cf86934</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;i changed the pins numbers and i tried again always the same output&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;nbsp;&lt;span&gt;*** Booting Zephyr OS build v2.4.99-ncs2 ***&lt;/span&gt;&lt;br /&gt;&lt;span&gt;No device &amp;quot;BME280&amp;quot; found; did initialization fail? &amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and the line 698 in the&amp;nbsp;nrf5340dk_nrf5340_cpuapp.dts.pre.tmp is the line 8 below and so on&amp;nbsp;&lt;br /&gt;i think it&amp;#39;s blocked on pins level&amp;nbsp;&lt;br /&gt;i don&amp;#39;t know what can be causing this output ??&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;*
*
*
*
&amp;amp;i2c1 {
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
 status = &amp;quot;okay&amp;quot;;
 sda-pin = &amp;lt; 34 &amp;gt;;
 scl-pin = &amp;lt; 35 &amp;gt;;
    clock-frequency = &amp;lt;100000&amp;gt;;
 bme280@76 {
  compatible = &amp;quot;bosch,bme280&amp;quot;;
  reg = &amp;lt;0x76&amp;gt;;
  label = &amp;quot;BME280&amp;quot;;
 };
};
&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323523?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 11:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a36740c5-f379-48c9-9f5b-26972ac00bd8</guid><dc:creator>helsing</dc:creator><description>&lt;p style="font-family:Calibri;font-size:11pt;margin:0;"&gt;I see that the error occurs after the overlay file,&amp;nbsp;&lt;span style="font-style:italic;"&gt;nrf5340dk_nrf5340_cpuapp.overlay&lt;/span&gt;, has been processed(C:/Users/rzaafouri/ncs/v1.5.1/nrf/samples/sensor/bme280/boards/nrf5340dk_nrf5340_cpuapp.overlay).&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11pt;margin:0;"&gt;&amp;quot;Error: nrf5340dk_nrf5340_cpuapp.dts.pre.tmp:698.16-17 syntax error&amp;quot;&lt;/p&gt;
&lt;p style="font-family:Calibri;font-size:11pt;margin:0;"&gt;If you check the build folder and open the file &lt;span style="font-style:italic;"&gt;nrf5340dk_nrf5340_cpuapp.dts.pre.tmp&lt;/span&gt; and scroll down to line 698 you should find the syntax error causing this message. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323521?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 11:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d54d876f-f63f-417a-aa97-036e0f861e9f</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Could you please try the following for your I2C pins in the overlay?&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sda-pin&amp;nbsp;=&amp;nbsp;&amp;lt;&amp;nbsp;34&amp;nbsp;&amp;gt;;&amp;nbsp;//(32+2)&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;scl-pin&amp;nbsp;=&amp;nbsp;&amp;lt;&amp;nbsp;35&amp;nbsp;&amp;gt;;&amp;nbsp;//(32+3)&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Let me know how it goes, as I have not yet tested this myself. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323499?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 10:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d78ca468-c68d-4f66-a71d-5bac9cd0aa30</guid><dc:creator>Rihab</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;br /&gt;i figured out the problem of flashing&amp;nbsp;&lt;br /&gt;it&amp;#39;s related to the nrfjprog which was causing a problem&lt;br /&gt;and i succeeded to flash my NRF5340 and communicate with the NRF connect&amp;nbsp;&lt;br /&gt;but now i&amp;#39;m having a little problem simpler then all of this&amp;nbsp;&lt;br /&gt;i m trying to communicate with BME280 but everytime i&amp;#39;m getting&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v2.4.99-ncs2 ***&lt;br /&gt;No device &amp;quot;BME280&amp;quot; found; did initialization fail?&lt;/p&gt;
&lt;p&gt;which is related to the main.c on the bme280 related to zephyr projects&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2012-2014 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;device.h&amp;gt;
#include &amp;lt;devicetree.h&amp;gt;
#include &amp;lt;drivers/sensor.h&amp;gt;

#define BME280 DT_INST(0, bosch_bme280)

#if DT_NODE_HAS_STATUS(BME280, okay)
#define BME280_LABEL DT_LABEL(BME280)
#else
#error Your devicetree has no enabled nodes with compatible &amp;quot;bosch,bme280&amp;quot;
#define BME280_LABEL &amp;quot;&amp;lt;none&amp;gt;&amp;quot;
#endif

void main(void)
{
	const struct device *dev = device_get_binding(BME280_LABEL);

	if (dev == NULL) {
		printk(&amp;quot;No device \&amp;quot;%s\&amp;quot; found; did initialization fail?\n&amp;quot;,
		       BME280_LABEL);
		return;
	} else {
		printk(&amp;quot;Found device \&amp;quot;%s\&amp;quot;\n&amp;quot;, BME280_LABEL);
	}

	while (1) {
		struct sensor_value temp, press, humidity;

		sensor_sample_fetch(dev);
		sensor_channel_get(dev, SENSOR_CHAN_AMBIENT_TEMP, &amp;amp;temp);
		sensor_channel_get(dev, SENSOR_CHAN_PRESS, &amp;amp;press);
		sensor_channel_get(dev, SENSOR_CHAN_HUMIDITY, &amp;amp;humidity);

		printk(&amp;quot;temp: %d.%06d; press: %d.%06d; humidity: %d.%06d\n&amp;quot;,
		      temp.val1, temp.val2, press.val1, press.val2,
		      humidity.val1, humidity.val2);

		k_sleep(K_MSEC(1000));
	}
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so the ponter is blocked on Null&amp;nbsp;&lt;br /&gt;&amp;nbsp;do you have a suggestion on how to fix it&amp;nbsp;&lt;br /&gt;or do you recommend something to replace it with&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 with NRF5340 display (T,P,H) problem</title><link>https://devzone.nordicsemi.com/thread/323490?ContentTypeID=1</link><pubDate>Thu, 05 Aug 2021 10:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:419839aa-eca7-4cd0-a173-35d5d1b97157</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the detailed description.&lt;/p&gt;
&lt;p&gt;I found a thing or two that might be causing this. I am trying to reproduce the error and will get back to you shortly.&lt;/p&gt;
&lt;p&gt;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>