<?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>case about ncs v2.9.0 ncp example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122022/case-about-ncs-v2-9-0-ncp-example</link><description>Hi, 
 1.How should nRF21540 be added to the nRF52840 DK ncp example? Please provide the lines of code that need to be modified. 2. How should the uart interface be modified to the spi interface in the ncp example? Please provide a usable example. 
 Kind</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Jun 2025 08:53:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122022/case-about-ncs-v2-9-0-ncp-example" /><item><title>RE: case about ncs v2.9.0 ncp example</title><link>https://devzone.nordicsemi.com/thread/538177?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 08:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b5e55dd-5554-46fe-b227-d0fb6ca779ca</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Peter.Min,&amp;nbsp;&lt;/p&gt;
[quote user=""]1.How should nRF21540 be added to the nRF52840 DK ncp example? Please provide the lines of code that need to be modified.[/quote]
&lt;p&gt;You can find documentation on developing with our FEMs here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.0.2/page/nrf/app_dev/device_guides/fem/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-3.0.2/page/nrf/app_dev/device_guides/fem/index.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. How should the uart interface be modified to the spi interface in the ncp example? Please provide a usable example.[/quote]
&lt;p&gt;We don&amp;#39;t provide SPI implementation for NCP. You need to implement this yourself if you need it. A starting point is to implement your own API from&amp;nbsp;&lt;span&gt;zb_nrf_async_serial&lt;/span&gt;.c, which you can find the source code for R23 &lt;a href="https://github.com/nrfconnect/ncs-zigbee/blob/v0.4.0/subsys/osif/zb_nrf_async_serial.c"&gt;here&lt;/a&gt; and R22 &lt;a href="https://github.com/nrfconnect/ncs-zigbee-r22/blob/main/subsys/osif/zb_nrf_async_serial.c"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>