<?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>nRF51 MPU9255 SPI READ Failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21064/nrf51-mpu9255-spi-read-failed</link><description>Hi all: 
 I wrote a code to directly read the register 0x43 (MPU_REG_GYRO_XOUT_H)
But the GYRO data I got is wrong 
 Chip: nRF51422 
 Board: PCA10028 
 Firmware: S130_nRF51_2.0.1 
 nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG(SPI_INSTANCE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Apr 2017 16:10:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21064/nrf51-mpu9255-spi-read-failed" /><item><title>RE: nRF51 MPU9255 SPI READ Failed</title><link>https://devzone.nordicsemi.com/thread/82299?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 16:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8ea0b97-a2be-4836-96a7-8a1c4f21b069</guid><dc:creator>makerTim</dc:creator><description>&lt;p&gt;I solved it. It was wrong because my MPU9255 was connected to 5V. The chip select Pin is also 5V, and this cause the CS pin can&amp;#39;t draw the voltage down to 0V. I measured 3V on the CS pin when connected, and 0V when CS pin unconnected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 MPU9255 SPI READ Failed</title><link>https://devzone.nordicsemi.com/thread/82298?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 12:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35053d42-b4b6-4883-8661-518a7edea70d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do you configure anything else in your code that use P0.04?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 MPU9255 SPI READ Failed</title><link>https://devzone.nordicsemi.com/thread/82297?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 11:32:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a920f6-e939-4a9d-b3c2-5a62005b3e20</guid><dc:creator>makerTim</dc:creator><description>&lt;p&gt;I found the root cause, the chip select on Pin 4 didn&amp;#39;t work.
Why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 MPU9255 SPI READ Failed</title><link>https://devzone.nordicsemi.com/thread/82296?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 09:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acea6265-4344-4c7b-967c-bb3cf551babe</guid><dc:creator>makerTim</dc:creator><description>&lt;p&gt;MPU9255 was set, but the data was still wrong.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ff.PNG"&gt;ff.PNG&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[1B][2J[1B][;HMPU BLE simple example. Compiled @ 17:15:28.
[1B][2J[1B][;HAccel: 00000, 00000, 00000
Accel: 00, 00, 00, 00, 00, 00
[1B][2J[1B][;HAccel: 00255, 00255, 00255
Accel: 00, 0xff, 00, 0xff, 00, 0xff
[1B][2J[1B][;HAccel: 00255, 00255, 00255
Accel: 00, 0xff, 00, 0xff, 00, 0xff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 MPU9255 SPI READ Failed</title><link>https://devzone.nordicsemi.com/thread/82295?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 09:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f3525a0-56a1-4527-8d64-43abc6e01d25</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you tried the example on GitHub without changes (only make sure you set the correct sensor model define &lt;code&gt;MPU9255&lt;/code&gt;? What values are you getting from this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>