<?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>Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32535/using-serialization-on-a-nrf52832</link><description>Dear Nordic, 
 
 I have located the Serialization example project (using SPI) for the Connectivity board, but I cannot find an example project for the Application CPU board. 
 The Application board can be another type of CPU (i.e. not Nordic), so my question</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Apr 2018 05:43:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32535/using-serialization-on-a-nrf52832" /><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/129253?ContentTypeID=1</link><pubDate>Mon, 23 Apr 2018 05:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba3fa7c-d372-4feb-8bfe-7d992ddb08a7</guid><dc:creator>Declan Traill</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;Ok, thanks - I have SPI communications happening &amp;amp; am getting Advertising Report Events being sent from the Nordic to the NXP. The problem was that the REQ &amp;amp; RDY line state changes were not generating interrupts properly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Declan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/129126?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2018 11:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f804eb1f-5e1a-4ff3-bcfd-df969c82a28a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which function call is returning&amp;nbsp;NRF_ERROR_NO_MEM? Both&amp;nbsp;SPI RDY and SPI REQ lines should be active low, and use pullups. In the serialization application examples in the SDK, the connectivity chip is reset after transport is initialized. I would recommend that you do something similar, to ensure the connectivity board is in the correct state when you send commands.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/128378?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 05:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ef5edd2-7637-4579-8d88-abe9cb51f60b</guid><dc:creator>Declan Traill</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I have some serialization communications happening between my two CPUs (Nordic and NXP) via SPI, &lt;br /&gt;&amp;nbsp; but it seems to be different depending which CPU starts up first, and the comms seems to grind to a halt quite promptly and then &lt;br /&gt;&amp;nbsp; no message can be sent (get repeated NRF_ERROR_NO_MEM errors).&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; If I start up the Nordic CPU first, then a large amount of data (65535 bytes) gets streamed from the Nordic CPU coon after it starts up.&lt;br /&gt;&amp;nbsp; I get state sequence SER_PHY_STATE_TX_ZERO_HEADER, SER_PHY_STATE_RX_HEADER, SER_PHY_STATE_MEMORY_REQUEST, then lots of SER_PHY_STATE_RX_PAYLOAD packets.&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; If I start up the NXP CPU first, I get SER_PHY_EVT_GPIO_REQ (while in SER_PHY_STATE_MEMORY_REQUEST state), then nothing.&lt;br /&gt;&amp;nbsp; If I then try to send a command, such as sd_ble_gap_scan_start, I get HAL_TRANSP_TX_STATE_TX_ALLOCATED, HAL_TRANSP_TX_STATE_TRANSMITTING, SER_PHY_EVT_TX_API_CALL, then nothing (and nothing seems to happen at the Nordic end).&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; What is the startup sequence supposed to look like?&lt;br /&gt;&amp;nbsp; Which CPU should start up first, and what messages are exchanged at the start?&lt;br /&gt;&amp;nbsp; Is there any required sequence of commands that should be sent after startup?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Further to these questions, could you confirm that: the SPI RDY Line is Active High and should have an internall Pull-Down, and the SPI REQ Line is Active Low and should have an internal Pull-Up?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are there any SPI requirements for pre_delay, post_delay, frame_delay or transfer_delay that should be set on the NXP side?&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;Regards,&lt;/p&gt;
&lt;p&gt;Declan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/128209?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 10:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca4bb5e-83fd-47d6-b2d2-7bae11cb71e2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Good to hear that you found a solution!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/128146?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 04:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dbeeb1e-8863-4c88-a984-5f1f3d745836</guid><dc:creator>Declan Traill</dc:creator><description>&lt;p&gt;Found the problem - I had disabled the call to event_handler() during board bring-up so that the code on the Nordic would continue running without the SPI link to the other CPU being present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/127948?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 06:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a8dad8e-9436-470d-b5da-28828cef4938</guid><dc:creator>Declan Traill</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a protoype board with a Nordic nRF52 chip connected to another CPU via SPI.&lt;/p&gt;
&lt;p&gt;I am sending SPI data from the other CPU (configured as SPI Master), and can see the clock and data arriving at the GPIO pins of the Nordic chip, but even though the pins are configured as SPI MOSI and MISO pins, I am not getting any activity in the Nordic Serialization code indicating that data has been received - No IRQ generated and no Serialization events.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked that the initialization of the Serialization is done on the Nordic device &amp;amp; get a couple of IRQ/Events at startup, but nothing after that.&lt;/p&gt;
&lt;p&gt;Can you suggest what might be wrong?&amp;nbsp; I set up the Nordic Serialization code in the same way as one of the Serialization Example projects (for SPI).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Declan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/125589?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 15:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7334add-2ebf-42c7-9553-49723a457c80</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;&lt;a href="http://www.st.com/content/ccc/resource/technical/document/application_note/f3/db/ba/cb/bc/1a/40/c6/DM00117406.pdf/files/DM00117406.pdf/jcr:content/translations/en.DM00117406.pdf"&gt;This document&lt;/a&gt; might be of interest. It is for nRF51 series, and old serializers, but should have som useful information. You would most likely need all files found in&amp;nbsp;&lt;em&gt;components\serialization\application\&lt;/em&gt; and&amp;nbsp;&lt;em&gt;components\serialization\common\.&amp;nbsp;&lt;/em&gt;You will have to adapt the files to work with the application CPU and libraries.&lt;/p&gt;
&lt;p&gt;SPI_REQ&amp;nbsp;and SPI_RDY are simply GPIOs (like SPI_CS).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/125255?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 04:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af86e4cc-08d0-4bff-936c-a710d634d2aa</guid><dc:creator>Declan Traill</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the reply. I have already seen those pages, but there isn&amp;#39;t a list anywhere of which files are required to be included in the build for the Application CPU project. I have tried adding the files I listed above, and had to add app_error_weak.c, app_error.c, ble_serialization.h and cond_field_serialization.h also. Now it builds ok &amp;amp; also the device driver for the Application CPU SPI peripheral will need to be defined in ser_phy.c&lt;/p&gt;
&lt;p&gt;There is another question I have too: the SPI peripheral on the Application CPU I am using doesn&amp;#39;t have SPI_REQ or SPI_RDY lines (it only has SPI_CSN, SPI_MOSI, SPI_MISO, SPI_CLK), can Serialization be made to work with this configuration over SPI?&amp;nbsp; Is there anything I need to configure/change in software to allow the SPI to work with 4 wires, or can I configure normal GPIO lines on the Application CPU to function as SPI_REQ &amp;amp; SPI_RDY lines?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Declan Traill&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Serialization on a nRF52832</title><link>https://devzone.nordicsemi.com/thread/125209?ContentTypeID=1</link><pubDate>Tue, 20 Mar 2018 15:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d566d06-1a86-4e9e-8c0d-d2b611974925</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are multiple application side examples for serialization. They are located within other example directories. Please have a look at &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/nrf51_setups_serialization.html?cp=4_0_0_1_4_1#serialization_software"&gt;this page&lt;/a&gt; for an overview of which examples include serialization examples.&lt;/p&gt;
&lt;p&gt;Unfortunately, I&amp;#39;m not aware of any examples of non-Nordic serialization, but maybe you can get some inspiration from &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/26935/nrf52832-stm32-central-w-serialization-not-scanning"&gt;this thread&lt;/a&gt;? The serialization PHYs are described on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/serialization_phy.html?cp=4_0_0_3_38_3"&gt;this page&lt;/a&gt;. The&amp;nbsp;&lt;a title="Porting serialization libraries" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/serialization_porting_guide.html?cp=4_0_0_3_38_5"&gt;Porting serialization libraries&lt;/a&gt;&amp;nbsp;should describe the rest of what you need to implement this on another chip.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>