<?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>Simple SPI code to verify an nrf52811 attached via SPI is functional (ie whoami..)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49991/simple-spi-code-to-verify-an-nrf52811-attached-via-spi-is-functional-ie-whoami</link><description>I have a new board with a STM32L47 running mbed OS. There is an nRF52811 connected via SPI. I simply want to verify that the nRF52811 is connected properly and can be communicated to by sending some simple command sequence over SPI and receiving data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jul 2019 11:12:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49991/simple-spi-code-to-verify-an-nrf52811-attached-via-spi-is-functional-ie-whoami" /><item><title>RE: Simple SPI code to verify an nrf52811 attached via SPI is functional (ie whoami..)</title><link>https://devzone.nordicsemi.com/thread/199504?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 11:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6db54f9-c95e-487a-b633-75ee1bf08445</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mark&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, but we&amp;#39;re not too knowledgeable on embOS, as this is more of SEGGER&amp;#39;s forte. If you want to use embOS and the RedBearLab I suggest you contact &lt;a href="https://www.segger.com/support/technical-support/"&gt;SEGGER &lt;/a&gt;or &lt;a href="https://discuss.redbear.cc/"&gt;RedBearLab &lt;/a&gt;support.&lt;/p&gt;
&lt;p&gt;If you just need to test the SPI of your nRF52811 I suggest you look at our SDK examples. We have examples for &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fspi_slave_example.html&amp;amp;cp=5_1_4_6_39"&gt;SPI&lt;/a&gt;, &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Ffds_example.html&amp;amp;cp=5_1_4_6_8"&gt;Flash_fds &lt;/a&gt;(Flash operations), &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Ftemperature_example.html&amp;amp;cp=5_1_4_6_41"&gt;temperature sensors&lt;/a&gt;, and more in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_sdk%2Fstruct%2Fsdk_nrf5_latest.html&amp;amp;cp=5_1"&gt;SDK v.15.3&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Due to the summer holidays in Norway, our support team is understaffed this week, and delayed replies must be expected. Sorry for the inconvenience!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple SPI code to verify an nrf52811 attached via SPI is functional (ie whoami..)</title><link>https://devzone.nordicsemi.com/thread/199339?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 15:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3bec8ae-edbf-4d1b-8cff-f3814f032966</guid><dc:creator>MrFoley</dc:creator><description>&lt;p&gt;I&amp;#39;m able to conform the device responds with data when I send it the ReadBearLab command examples. The received data is not what I expect as I indicated. I need guidance on how to request an erase of the Flash page, or how to read something else, like the temperature sensor, by sending a sequence via&amp;nbsp;&lt;span&gt;spi_master_block_write().&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple SPI code to verify an nrf52811 attached via SPI is functional (ie whoami..)</title><link>https://devzone.nordicsemi.com/thread/199332?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 14:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2454dc1-078f-42fe-91dc-5485ebc9f272</guid><dc:creator>awneil</dc:creator><description>[quote userid="81751" url="~/f/nordic-q-a/49991/simple-spi-code-to-verify-an-nrf52811-attached-via-spi-is-functional-ie-whoami"]Can someone offer guidance on how to make this demo work[/quote]
&lt;p&gt;You would have to ask RedBear - it&amp;#39;s &lt;em&gt;their&lt;/em&gt; code.&lt;/p&gt;
&lt;p&gt;Might be simpler to just use an SDK example?&lt;/p&gt;
&lt;p&gt;Note that SDK examples do come with pre-built hex - so you wouldn&amp;#39;t necessarily have to go through building them yourself ...&lt;/p&gt;
[quote userid="81751" url="~/f/nordic-q-a/49991/simple-spi-code-to-verify-an-nrf52811-attached-via-spi-is-functional-ie-whoami"]I simply want to verify that the nRF52811 is connected properly [/quote]
&lt;p&gt;couldn&amp;#39;t you verify that by simply toggling the lines ... ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/72485._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>