<?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>USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123485/usb-serial-device-port-not-found</link><description>Before i inserted in my code to use ppi + gpiote + spim usb serial device port worked properly, it connected normally, but now it doesn&amp;#39;t connect the port at all, did i create blocking functions even though they should work without CPU. Also my timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Aug 2025 11:41:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123485/usb-serial-device-port-not-found" /><item><title>RE: USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/thread/545357?ContentTypeID=1</link><pubDate>Tue, 12 Aug 2025 11:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c81aedb-5e7d-4e58-b79d-12bd8115bc29</guid><dc:creator>Petar02</dc:creator><description>&lt;p&gt;The problem was with &amp;nbsp;ArrayList and using&amp;nbsp;nrfx_spim_xfer, in this example is shown how should it be done&amp;nbsp;&lt;a href="https://github.com/too1/ncs-spi-arraylist-example/blob/master/src/main.c"&gt;https://github.com/too1/ncs-spi-arraylist-example/blob/master/src/main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/thread/544772?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 11:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dab07b5-96ca-4a2c-b617-b638cf4b31f6</guid><dc:creator>Petar02</dc:creator><description>&lt;p&gt;No&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/thread/544770?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 11:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4d78eba-9e59-4271-8381-283a1b5b9b42</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you get anything in the log output, e.g. with UART backend, about the fault ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/thread/544763?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 11:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d34f69a0-09ff-4daa-b902-3921cc58352c</guid><dc:creator>Petar02</dc:creator><description>&lt;p&gt;When i started the debug it just stopped showing in fatal.c on arch_system_halt and in variables locals there si reason=25 and in callstack is that&amp;nbsp;&lt;span&gt;&amp;nbsp;arch_system_halt&amp;nbsp;(unsigned int reason) and k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf * esf)&amp;nbsp; &amp;nbsp;And now its only this&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div id="list_id_25_22" class="monaco-list-row" data-index="22" data-last-element="false" data-parity="even"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;&lt;span class="value info"&gt;&lt;span&gt;&lt;span class=""&gt;Program received signal SIGTRAP, Trace/breakpoint trap. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div class="source"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="list_id_25_23" class="monaco-list-row" data-index="23" data-last-element="false" data-parity="odd"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-indent"&gt;&lt;/div&gt;
&lt;div class="monaco-tl-twistie"&gt;&lt;/div&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;&lt;span class="value info"&gt;&lt;span&gt;&lt;span class=""&gt;arch_system_halt (reason=reason@entry=34) at C:/ncs/v2.9.1/zephyr/kernel/fatal.c:30 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div class="source"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="list_id_25_24" class="monaco-list-row" data-index="24" data-last-element="false" data-parity="even"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-indent"&gt;&lt;/div&gt;
&lt;div class="monaco-tl-twistie"&gt;&lt;/div&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;&lt;span class="value info"&gt;&lt;span&gt;&lt;span class=""&gt;30 for (;;) {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/thread/544762?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 11:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c861230-87f8-49dc-a9a9-a2aa0bfe0080</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Are you able to debug, let the program run, pause the CPU, and check the callstack where the CPU might be stuck doing ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/thread/544731?ContentTypeID=1</link><pubDate>Wed, 06 Aug 2025 08:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54a88d1c-8182-4325-9f2b-f18d27ea832f</guid><dc:creator>Petar02</dc:creator><description>&lt;p&gt;When I remove this function from my code&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;spi_ping_pong_transfer_rx((uint8_t *)p_rx_buffer_a);&lt;/pre&gt; after flashing my port usb serial device&amp;nbsp;appears and I get a printf LOG ..., but when that function is inserted it doesn&amp;#39;t appear as a port at all&lt;pre class="ui-code" data-mode="text"&gt;void spi_ping_pong_transfer_rx(uint8_t *rx_ptr)
{
	//spi.p_reg-&amp;gt;EVENTS_END = 0;
	//uint8_t tx_buffer[CPU_BUF_SIZE];
	uint8_t tx_buffer[3] = {0};

	NRF_SPIM1-&amp;gt;RXD.MAXCNT = 3;
	NRF_SPIM1-&amp;gt;RXD.PTR = (int32_t)rx_ptr;
    NRF_SPIM1-&amp;gt;RXD.LIST = SPIM_RXD_LIST_LIST_ArrayList;

    nrfx_spim_xfer_desc_t xfer_desc;
    xfer_desc.p_tx_buffer = NULL;
    xfer_desc.tx_length   = 0;
    xfer_desc.rx_length   = BYTES_PER_SAMPLE;
    xfer_desc.p_rx_buffer = rx_ptr;

	//nrfx_spim_xfer_desc_t xfer = NRFX_SPIM_XFER_TRX(tx_buffer,3,rx_ptr, 3);

	nrfx_err_t err = (nrfx_spim_xfer(&amp;amp;spi, &amp;amp;xfer_desc, flags));

    //nrfx_err_t err = (nrfx_spim_xfer(&amp;amp;spi, &amp;amp;xfer, flags));  // ne startuje se odmah!
	if (err != NRFX_SUCCESS) {
		printk(&amp;quot;SPIM transfer error: %d\n&amp;quot;, err);
	}
	else {
		LOG_INF(&amp;quot;zapoceo citanje!\n&amp;quot;);
	}
	/*while (spi.p_reg-&amp;gt;EVENTS_END == 0) {
        // optional: dodaj timeout da ne zapne zauvek
    }*/
	spi.p_reg-&amp;gt;EVENTS_END = 0;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Serial Device port not found</title><link>https://devzone.nordicsemi.com/thread/544633?ContentTypeID=1</link><pubDate>Tue, 05 Aug 2025 12:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e232eb0-f90f-4222-b1c8-d99a7276a41c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Maybe you can try debugging, and see what the CPU is doing when this issue happens ? As a starting point, you can let the CPU run, and when the issue happens, pause the debugger, and see how the callstack looks like.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>