<?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>nrf9160 prj.config issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47737/nrf9160-prj-config-issues</link><description>Hello, 
 I am working on a custom PCB with NRF9160. 
 I have modified nrf9160 uart sample to add UART_1 and enable SPI_3 and everything is working fine. 
 Now I need to include I2C_3 but SES will not open project if I add I2C_3 to &amp;#39;prj.config&amp;#39; Please</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 May 2019 05:57:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47737/nrf9160-prj-config-issues" /><item><title>RE: nrf9160 prj.config issues</title><link>https://devzone.nordicsemi.com/thread/190159?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 05:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c124e798-1982-4602-bc3f-cf4984a19237</guid><dc:creator>SuperAbe</dc:creator><description>&lt;p&gt;Problem is solved. There was an issue with conflicting instances as mentioned in earlier posts.&lt;/p&gt;
&lt;p&gt;I tried switching I2C2 and SPI3 to I2C3 and SPI2 again and for some reason it worked this time.&lt;/p&gt;
&lt;p&gt;I think I just know my way better around the SDK so I must have missed something before.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 prj.config issues</title><link>https://devzone.nordicsemi.com/thread/190121?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 21:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5ced1bc-7127-437a-bd26-9d583b3ecca0</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;There is this line in this zephyr driver file &amp;quot;zephyr/drivers/spi/Kconfig.nrfx&amp;quot;&lt;/p&gt;
&lt;p&gt;# In Nordic SoCs, SPI and TWI peripherals with the same instance number&lt;br /&gt;# share certain resources and therefore cannot be used at the same time&lt;br /&gt;# (in nRF91 Series this limitation concerns UART peripherals as well).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not mentioned in the datasheet afaik so it&amp;#39;s tricky.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 prj.config issues</title><link>https://devzone.nordicsemi.com/thread/189156?ContentTypeID=1</link><pubDate>Sun, 26 May 2019 19:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f863169-466a-415c-93e7-a220af8cad85</guid><dc:creator>SuperAbe</dc:creator><description>&lt;p&gt;I found a solution to this problem:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Value of NRF_SPIM2_NS-&amp;gt;PSEL.MOSI: 13&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;-----Should be 30&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Value of NRF_SPIM2_NS-&amp;gt;PSEL.MISO: 18&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;-----Should be 2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UART_2 from secure_boot was creaeting a conflict and restricted my from changing pins so I disabled UART_2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now my pin selections are correct:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Value of NRF_SPIM3_NS-&amp;gt;PSEL.MOSI: 30 &lt;br /&gt;Value of NRF_SPIM3_NS-&amp;gt;PSEL.MISO: 2 &lt;br /&gt;Value of NRF_TWIM2_NS-&amp;gt;PSEL.SCL: 8 &lt;br /&gt;Value of NRF_TWIM2_NS-&amp;gt;PSEL.SDA: 9 &lt;br /&gt;Value of NRF_TWIM2_NS-&amp;gt;FREQUENCY: 26738688&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;SPI_3 works and I2C_3 work but they cannot be enabled simultaneously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am currently using SPI_3 and I2C_2 and I can flash to device but device stops at:&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot; error = i2c_transfer(i2c_dev, &amp;amp;msgs[0], 1, i); &amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please help if you have any idea.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 prj.config issues</title><link>https://devzone.nordicsemi.com/thread/189134?ContentTypeID=1</link><pubDate>Sat, 25 May 2019 17:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad57d8be-1aca-4462-ad6a-2b2a605c9f32</guid><dc:creator>SuperAbe</dc:creator><description>&lt;p&gt;I found the solution but I have another related issue now.&lt;/p&gt;
&lt;p&gt;I was trying to use SPI_3 and I2C_3. this creates a conflics and prevents SES from loading the project.&lt;/p&gt;
&lt;p&gt;For some reason zephyr + nrf9160 doesn&amp;#39;t like it when you have SPI_x and I2C_x.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Solution is&amp;nbsp; to change one I2C or SPI to SPI_x and I2C_y. (example I2C_2 and SPI_3).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The issue is that all I2C and SPI pins can&amp;#39;t be redefined from .overlay or .dts files.&lt;/p&gt;
&lt;p&gt;the only ports I can get to run are I2C_3 and SPI_3 but I can&amp;#39;t run both at the same time.&lt;/p&gt;
&lt;p&gt;I changed SPI_3 to SPI_2 with these pins:&lt;/p&gt;
&lt;p&gt;&amp;amp;spi2 {&lt;br /&gt; status = &amp;quot;ok&amp;quot;;&lt;br /&gt; sck-pin = &amp;lt;0&amp;gt;;&lt;br /&gt; mosi-pin = &amp;lt;30&amp;gt;;&lt;br /&gt; miso-pin = &amp;lt;2&amp;gt;;&lt;br /&gt; //ss-pin = &amp;lt;14&amp;gt;;&lt;br /&gt; spi-max-frequency = &amp;lt;4000000&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I printk pins locations I get:&lt;/p&gt;
&lt;p&gt;Value of NRF_SPIM2_NS-&amp;gt;PSEL.MOSI: 13&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;-----Should be 30&lt;br /&gt;Value of NRF_SPIM2_NS-&amp;gt;PSEL.MISO: 18&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;-----Should be 2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have the same issue when I use I2C_2. Pin locations cannot be redefined.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>