<?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>nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41074/nrf52832-sd-card-and-accelerometer</link><description>Hello! 
 I have both SD Card and accelerometer in same SPI bus. Both of them working like charm if another is not present. I&amp;#39;am using app_sdcard from 52 sdk. 
 Can i use spi manager for my accelerometer or does that effect to sd card drivers? 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 May 2020 09:14:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41074/nrf52832-sd-card-and-accelerometer" /><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/248376?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 09:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5275d621-7ff6-41f9-89cb-dd2cc5bfef10</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;Hi, thanks for your reply, I encounter a problem, I didn&amp;#39;t put&amp;nbsp;fatfs_example() and initAcc(); in the main(), but it always runs the function &lt;span&gt;fatfs_example() to read SD card&lt;/span&gt;, did you solve this problem before? How?&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/248137?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 10:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b28d24a6-197a-471c-85bd-d6f85801b434</guid><dc:creator>Iigori</dc:creator><description>&lt;p&gt;Hi, i just initialized sd card first, then reseted accelerometer and reinitialized it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/248118?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 09:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbac7b10-3928-4160-9b04-f7b3b7d74f3f</guid><dc:creator>TTN</dc:creator><description>&lt;p&gt;Hi, I try the same structure using a sensor and sd card, the code flow is like the 12453.main.c seems that you solve the problem, would you share the solution you use to solve the problem?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/163028?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 07:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe1ef503-cec7-49f3-bca7-4a0668eb373a</guid><dc:creator>Iigori</dc:creator><description>&lt;p&gt;Problem solved. When initialized one of the device first&amp;nbsp;that made another device BUS auto detect fail. That caused devices to not work in the right way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/161339?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 07:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e339e591-98a3-4e50-8791-1355b062982c</guid><dc:creator>Iigori</dc:creator><description>&lt;p&gt;Seems that I might have some problem with the circuit. Need to buy oscilloscope for checking that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/160877?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 07:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f2c66c2-abf3-40a8-8b50-3878dd06c556</guid><dc:creator>Iigori</dc:creator><description>&lt;p&gt;Thanks for reply Nguyen, I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/160475?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 21:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6864d245-feb8-402f-b558-6bc5110c8ac3</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Yes, you can have all 3 spi master at the same time. &amp;nbsp;It probably just a driver issue. &amp;nbsp;Try this &lt;a href="https://github.com/I-SYST/EHAL/blob/master/ARM/Nordic/nRF52/EHAL/src/spi_nrf52.cpp"&gt;SPI Driver&lt;/a&gt;. &amp;nbsp;It works for all 3 spi and supports multiple devices on the same spi as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/160122?ContentTypeID=1</link><pubDate>Tue, 04 Dec 2018 07:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37892e04-13fa-431b-afdc-cb98237a1645</guid><dc:creator>Iigori</dc:creator><description>&lt;p&gt;So it seems I can&amp;#39;t have 2 spi masters initialized at the same time.&lt;/p&gt;
&lt;p&gt;Program works if i uninitialize sd card before executing initAcc.&lt;/p&gt;
&lt;p&gt;What would be the best solution to use both at &amp;quot;same&amp;quot; time? Is constantly initializing and unitializing the spi master heavy duty?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/159972?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 13:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01ab5c24-c009-4d4f-a33d-93fa61c77721</guid><dc:creator>Iigori</dc:creator><description>&lt;p&gt;Hi Stian, I moved my code to &amp;quot;test&amp;quot; enviroment so i&amp;#39;m now only using spi instance 1 and spi instance 2. TWI is not enabled. It&amp;#39;s quite frustrating that they are working, but not as together.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/159971?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 13:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d3d762d-8e46-4e2a-ac83-27bb8256930e</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;And regarding using the same SPI bus with two slaves,&amp;nbsp; I need to setup a project here to see what happens with the SD-card driver.&lt;/p&gt;
&lt;p&gt;What you could try is to use two different SPI instances for the two slaves, but use the same GPIO configuration. Then you will have to uninitialize and re-initialize the SPI instance every time you want to start a new transfer, but at least the handlers are separate for the different instances.&lt;/p&gt;
&lt;p&gt;First we would have to figure out why you can only enable one SPI instance at a time though. So please try to disable the TWI instance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/159968?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 13:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6908f5e7-a9e1-4faa-afa0-50740ad62019</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, what happens if you do not initialize the TWI sensor? The TWI peripheral is shared with the SPI peripheral, so you can&amp;#39;t have both SPI0 and TWI0 enabled at the same time. SPI1 and TWI1 etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832, sd card and accelerometer.</title><link>https://devzone.nordicsemi.com/thread/159946?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 12:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca7070b9-9f8c-48a4-a16b-6be4baefb381</guid><dc:creator>Iigori</dc:creator><description>&lt;p&gt;Schematics:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gleapper.pdf"&gt;devzone.nordicsemi.com/.../gleapper.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/12453.main.c"&gt;devzone.nordicsemi.com/.../12453.main.c&lt;/a&gt;What have i missed? In main fatfs_example() works if it is called first and same does initAcc()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>