<?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>I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76990/i2c-communication-with-nrf5340-custom-board</link><description>We are using nrf5340-dk to communicate with nrf5340 custom board and trying to search for the other sensors&amp;#39; addresses. There is secure mode and unsecure mode CPU. Which mode to try on? We could not detect the sensors I2C addresses.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Jul 2021 13:03:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76990/i2c-communication-with-nrf5340-custom-board" /><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/320700?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 13:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e429957-7def-48a5-82d6-5d2b33e029a4</guid><dc:creator>JoeD7</dc:creator><description>&lt;p&gt;I&amp;#39;m having a lot of trouble getting i2c running. Can you share what main.c looks like, what your overlays look like, and what pins locations you connected to on the board for scl sda?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/319287?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 07:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b1f9d3d-6ae2-4bdc-ba26-ba04762d448c</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="shivkant sharma"]&lt;p&gt;from&amp;nbsp;&lt;strong&gt;gpios&amp;nbsp; &lt;span style="color:rgba(255, 0, 0, 1);"&gt;&amp;amp;gpio0&amp;nbsp; &lt;span style="color:rgba(0, 0, 0, 1);"&gt;is gpio name,&amp;nbsp; &lt;span style="color:rgba(255, 0, 0, 1);"&gt;0x1C&lt;/span&gt; is pin number&amp;nbsp; and &lt;span style="color:rgba(255, 0, 0, 1);"&gt;0x1&lt;/span&gt; is pin status high/low&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;1 for high and 0 for low.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;Is my understanding correct?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, 0x1C is the pin number and 0x1 is the flag, indicating &amp;quot;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/include/dt-bindings/gpio/gpio.h#L23"&gt;GPIO_ACTIVE_LOW&lt;/a&gt;&lt;span&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;"&gt;&lt;span style="font-size:small;"&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/319158?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5904e4d6-3823-4937-a105-6b27bcfd8549</guid><dc:creator>shivkant sharma</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;from this:&lt;/p&gt;
&lt;p&gt;&amp;amp;led0 {&lt;br /&gt; &lt;strong&gt;gpios = &amp;lt; &lt;span style="color:#ff0000;"&gt;&amp;amp;gpio0 0x1c 0x1&lt;/span&gt; &amp;gt;;&lt;/strong&gt;&lt;br /&gt; label = &amp;quot;Green LED 0&amp;quot;;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;from&amp;nbsp;&lt;strong&gt;gpios&amp;nbsp; &lt;span style="color:#ff0000;"&gt;&amp;amp;gpio0&amp;nbsp; &lt;span style="color:#000000;"&gt;is gpio name,&amp;nbsp; &lt;span style="color:#ff0000;"&gt;0x1C&lt;/span&gt; is pin number&amp;nbsp; and &lt;span style="color:#ff0000;"&gt;0x1&lt;/span&gt; is pin status high/low&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;1 for high and 0 for low.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;Is my understanding correct?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/319156?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0ae964b-21e9-435f-896f-c2edbdc8044c</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Vivek,&lt;/p&gt;
&lt;p lang="en-GB"&gt;the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/zephyr/samples/basic/blinky/README.html#blinky"&gt;Blinky &lt;/a&gt;sample acutally is quite a good one to demonstrate the usage of the LEDs.&lt;/p&gt;
&lt;p lang="en-GB"&gt;If you want to modify the LED properties, you can do it in the overlay file as shown below for LED0:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;led0 {
	gpios = &amp;lt; &amp;amp;gpio0 0x1c 0x1 &amp;gt;;
	label = &amp;quot;Green LED 0&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope this will help you!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/319035?ContentTypeID=1</link><pubDate>Wed, 07 Jul 2021 20:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b009eea5-ff88-4d9a-9b42-d8d281f7c743</guid><dc:creator>shivkant sharma</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for you help now we are able to detect I2C address.&lt;/p&gt;
&lt;p&gt;Can you please let us know how to edit overlay file to configure different GPIOs for different functionality in overlay file?&lt;br /&gt;&lt;br /&gt;for example we edit this in our overlay file for working I2C:&lt;br /&gt;&amp;amp;i2c2 {&lt;br /&gt; status = &amp;quot;ok&amp;quot;;&lt;br /&gt; compatible = &amp;quot;nordic,nrf-twim&amp;quot;;&lt;br /&gt; sda-pin = &amp;lt; 36 &amp;gt;;&lt;br /&gt; scl-pin = &amp;lt; 37 &amp;gt;;&lt;br /&gt; clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;; &lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Same&amp;nbsp; we need to add for our LED and button GPIO.&lt;br /&gt;Can you please help us for same how can we add for these GPIOs because we didn&amp;#39;t find any example/ sample based on it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;FYI&lt;/p&gt;
&lt;p&gt;we already tried blinky sample on our custom board but that one is not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/318335?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 06:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:754adbdf-e0b8-4fe9-ad15-f21e4339f022</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Vivek,&lt;/p&gt;
[quote user="shivkant sharma"]&amp;gt; Which samples (&lt;strong&gt;nrf / zephyr&lt;/strong&gt;) i have to run to check functionality of our custom board?[/quote]
&lt;p lang="en-GB"&gt;That depends a little on your use case. The nRF samples are tailored towards our hardware and API, but we are still using Zephyr and its interfaces as RTOS. The Zephyr &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/zephyr/samples/index.html#samples-and-demos"&gt;samples&lt;/a&gt; are generic samples, based on the Zephyr &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/zephyr/reference/index.html#api-reference"&gt;API&lt;/a&gt;. The nRF &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/examples.html#applications-and-samples"&gt;samples&lt;/a&gt; will as well&amp;nbsp;demonstrate&amp;nbsp;the usage of our own &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/libraries.html#libraries"&gt;library&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/drivers.html#drivers"&gt;driver&lt;/a&gt; implementations.&lt;/p&gt;
&lt;p lang="en-GB"&gt;For getting started with I2C, I recommend use Zephyrs &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/zephyr/reference/peripherals/i2c.html#i2c"&gt;API&lt;/a&gt; though.&lt;/p&gt;
[quote user="shivkant sharma"]&amp;gt; As we connected my board using nrf5340 PDK board for programming but not able to see printk log on segger IDE debug console? how can i see log using PDK board.&lt;br /&gt;I also tried&amp;nbsp;hello_world samples code from zephyr. There is no printk log on console.[/quote]
&lt;p lang="en-GB"&gt;That is probably due to that the SEGGER debug console is not enabled by default. You wanna make sure enabling &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/kconfig/CONFIG_USE_SEGGER_RTT.html#cmdoption-arg-CONFIG_USE_SEGGER_RTT"&gt;CONFIG_USE_SEGGER_RTT&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/kconfig/CONFIG_RTT_CONSOLE.html#cmdoption-arg-CONFIG_RTT_CONSOLE"&gt;CONFIG_RTT_CONSOLE&lt;/a&gt; in &lt;em&gt;prj.conf&lt;/em&gt; of your application.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;When doing so, I can recommend to disable &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/kconfig/CONFIG_UART_CONSOLE.html#cmdoption-arg-CONFIG_UART_CONSOLE"&gt;CONFIG_UART_CONSOLE&lt;/a&gt; to avoid high bus loads.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope this answers your questions!&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/318133?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 09:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d4658ff-dcb4-478e-9bdf-6ffbc2fccba0</guid><dc:creator>shivkant sharma</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;one more question we are using toolchain version 1.5.1. In this there are 2 samples on inside &lt;strong&gt;nrf&lt;/strong&gt; folder and another folder in&amp;nbsp;&lt;strong&gt;zephyr.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt; when we use nrf samples from path &lt;strong&gt;&amp;quot;v1.5.1\nrf\samples\peripheral&amp;quot;&amp;nbsp;&lt;/strong&gt;and put our I2C sample to check I2C address. Its failed to run in non secure mode (&lt;strong&gt;cpuappns&lt;/strong&gt;). but running in secure mode (&lt;strong&gt;cpuapp&lt;/strong&gt;) not able to get I2C address when running in secure mode.&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Same sample when i am running from zephyr samples path its running properly.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;for this i have few questions:-&lt;/p&gt;
&lt;p&gt;&amp;gt; Which samples (&lt;strong&gt;nrf / zephyr&lt;/strong&gt;) i have to run to check functionality of our custom board?&lt;/p&gt;
&lt;p&gt;&amp;gt; As we connected my board using nrf5340 PDK board for programming but not able to see printk log on segger IDE debug console? how can i see log using PDK board.&lt;br /&gt;I also tried&amp;nbsp;hello_world samples code from zephyr. There is no printk log on console.&lt;br /&gt;&lt;br /&gt;Can you please help for these queries?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As we are using Windows OS for our build environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication with nrf5340 custom board</title><link>https://devzone.nordicsemi.com/thread/318126?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 09:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:334a270d-fc10-4595-8967-2656cffb2679</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Vivek,&lt;/p&gt;
&lt;p lang="en-GB"&gt;that doesn’t matter. You can use the I2C interface both as a secure and non-secure peripheral, as shown &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fchapters%2Fmemory%2Fappmem.html&amp;amp;cp=3_0_0_4_2_0&amp;amp;anchor=instantiation"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>