<?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>SDK 2.6.3, nRF5340 and how to customize DTM example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120595/sdk-2-6-3-nrf5340-and-how-to-customize-dtm-example</link><description>Hi, 
 i am working with the following setup: 
 - nrf5340 
 - SDK 2.6.3 
 - Direct Test Mode example with serial communication 
 I see that DTM example has changed from 2.1.4 to 2.6.3, so that the communication with the netcore goes through the appcore</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Apr 2025 14:38:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120595/sdk-2-6-3-nrf5340-and-how-to-customize-dtm-example" /><item><title>RE: SDK 2.6.3, nRF5340 and how to customize DTM example</title><link>https://devzone.nordicsemi.com/thread/531399?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 14:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e57d548-5be5-4d6a-aa45-0fbd8018654d</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Anytime&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 2.6.3, nRF5340 and how to customize DTM example</title><link>https://devzone.nordicsemi.com/thread/531378?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 13:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fe4ec35-0f89-4d12-aaeb-8b84ee6c9728</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Thanks for sharing, this may be useful for others also.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 2.6.3, nRF5340 and how to customize DTM example</title><link>https://devzone.nordicsemi.com/thread/531346?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 11:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:815160dc-80d3-451e-9d97-c0844694bc16</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Actually it is possible.&lt;br /&gt;I managed to do what I was asking in this ticket:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Build the DTM example for nrf5340 with SDK 2.6.3 for both the core WITHOUT copying any of the files from the SDK; use the CMakeLists.txt file reported above.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Inject some code into the child image (remote shell) without affecting any code in the sample.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Customize the TX and RX pin of the UART used to communicate with the app core&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I had to create a a module in the child_image/remote_shell where my custom c file is compiled and linked.&lt;/p&gt;
&lt;p&gt;In order to the custom code to be executed, i put the function in the macro SYS_INIT.&lt;/p&gt;
&lt;p&gt;The reason behind to do this is basically to not have to bring in my repo all the code from a sample that i do not want to change.&lt;/p&gt;
&lt;p&gt;If there is another way to achieve that, I would be very happy to know.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 2.6.3, nRF5340 and how to customize DTM example</title><link>https://devzone.nordicsemi.com/thread/531175?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 12:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af6a2b4b-096b-40bf-bde4-aa87af6a54a7</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;i am trying to understand if it is possible to NOT COPY all the code of the DTM example in my repo, inject some modification in the child image (that is the app core) and build it via the CMakeLists.txt file i posted above.&lt;/p&gt;
&lt;p&gt;I managed to do the first part: have the example built without copying the code and tested on my custom board.&lt;/p&gt;
&lt;p&gt;What i miss is the possibility to inject some code in the child image.&lt;/p&gt;
&lt;p&gt;But probably it is not..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 2.6.3, nRF5340 and how to customize DTM example</title><link>https://devzone.nordicsemi.com/thread/531172?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 12:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c1ff57c-01d6-47a8-b5e3-f58db262edc3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry, it&amp;#39;s not clear to me what you are really trying to solve here, you are of course free to do whatever you like. Normally if you plan to modify an existing NCS example the best is to copy it to somewhere outside of the NCS and modify and add overlays as you want.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>