<?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>No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85200/no-uart-or-cli-flasher-on-nrf52840dongle</link><description>I have developed a Zigbee application using the nrf52840 DK board + nRF Connect + Zephyr and it is working. Now I am trying to move that app over to the nrf52840 dongle. It didn&amp;#39;t work on the first attempt, so now I need to debug it. So far I have encountered</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Mar 2022 09:15:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85200/no-uart-or-cli-flasher-on-nrf52840dongle" /><item><title>RE: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/356511?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 09:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4a5510a-570d-4b2d-86fe-98d0488a875d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thank you for your input!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/356394?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 17:15:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3ceb4b8-d5e7-46d5-9529-2bd71113662d</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp; Since nrfutil still works with nRF Connect it would also be helpful to update the instructions with the procedures for flashing the dongle via CLI:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install nrfutil through pip because it&amp;#39;s not bundled with nRF Connect&lt;/li&gt;
&lt;li&gt;&lt;span&gt;nrfutil pkg generate --debug-mode --hw-version 52 --sd-req 0 --application zephyr/merged.hex /tmp/dfu.zip&lt;/span&gt;&lt;br /&gt;&lt;span&gt;nrfutil dfu usb-serial -pkg /tmp/dfu.zip -p /dev/cu.usbmodem* -b 115200&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Probably need a&amp;nbsp;pm_static_nrf52840dongle_nrf52840.yml file to keep the default flash partitions from colliding with the bootloader at the end of flash and to adjust the SRAM offset&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Flash offset of 0x1000 is automatically applied by the nRF Connect tools, doesn&amp;#39;t need to be changed in menuconfig&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;SRAM offset doesn&amp;#39;t need to be changed in menuconfig&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;How to add the DFU trigger to an app?&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/356203?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 08:44:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e9ef75a-519b-423d-9d88-bfbd6a4bdfb3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I see, I will add that to the internal ticket with the development/documentation team as well. I see that specifically stating that &amp;quot;no SoftDevice&amp;quot; should use -&lt;strong&gt;-sd-req 0&lt;/strong&gt;&amp;nbsp;would be clarifying.&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: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/355643?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 16:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4c439dd-f181-4ab5-95a1-aedfe0f7c1d7</guid><dc:creator>mytzyiay</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/85200/no-uart-or-cli-flasher-on-nrf52840dongle/355582#355582"]At least the --sd-req is described by writing&amp;nbsp;&lt;strong&gt;nrfutil pkg generate --help.&lt;/strong&gt;[/quote]
&lt;p&gt;I don&amp;#39;t see anything that tells me what value to use for a blinky or Zigbee app that doesn&amp;#39;t use SoftDevice at all?&amp;nbsp; The correct answer was &amp;quot;0x00&amp;quot; which does not appear in the documentation.&amp;nbsp; Every other value I tried caused a mismatch during flashing.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not implementing BLE so nothing besides nrfutil has ever asked me about a SoftDevice.&lt;/p&gt;
&lt;p&gt;--sd-req TEXT The SoftDevice requirements. A comma-&lt;br /&gt; separated list of SoftDevice firmware IDs (1&lt;br /&gt; or more) of which one must be present on the&lt;br /&gt; target device. Each item on the list must be&lt;br /&gt; a two- or four-digit hex number prefixed&lt;br /&gt; with &amp;quot;0x&amp;quot; (e.g. &amp;quot;0x12&amp;quot;, &amp;quot;0x1234&amp;quot;). A non-&lt;br /&gt; exhaustive list of well-known values to use&lt;br /&gt; with this option follows:&lt;br /&gt; |s112_nrf52_6.0.0|0xA7|&lt;br /&gt; |s112_nrf52_6.1.0|0xB0|&lt;br /&gt; |s112_nrf52_6.1.1|0xB8|&lt;br /&gt; |s112_nrf52_7.0.0|0xC4|&lt;br /&gt; |s112_nrf52_7.0.1|0xCD|&lt;br /&gt; |s113_nrf52_7.0.0|0xC3|&lt;br /&gt; |s113_nrf52_7.0.1|0xCC|&lt;br /&gt; |s130_nrf51_1.0.0|0x67|&lt;br /&gt; |s130_nrf51_2.0.0|0x80|&lt;br /&gt; |s132_nrf52_2.0.0|0x81|&lt;br /&gt; |s130_nrf51_2.0.1|0x87|&lt;br /&gt; |s132_nrf52_2.0.1|0x88|&lt;br /&gt; |s132_nrf52_3.0.0|0x8C|&lt;br /&gt; |s132_nrf52_3.1.0|0x91|&lt;br /&gt; |s132_nrf52_4.0.0|0x95|&lt;br /&gt; |s132_nrf52_4.0.2|0x98|&lt;br /&gt; |s132_nrf52_4.0.3|0x99|&lt;br /&gt; |s132_nrf52_4.0.4|0x9E|&lt;br /&gt; |s132_nrf52_4.0.5|0x9F|&lt;br /&gt; |s132_nrf52_5.0.0|0x9D|&lt;br /&gt; |s132_nrf52_5.1.0|0xA5|&lt;br /&gt; |s132_nrf52_6.0.0|0xA8|&lt;br /&gt; |s132_nrf52_6.1.0|0xAF|&lt;br /&gt; |s132_nrf52_6.1.1|0xB7|&lt;br /&gt; |s132_nrf52_7.0.0|0xC2|&lt;br /&gt; |s132_nrf52_7.0.1|0xCB|&lt;br /&gt; |s140_nrf52_6.0.0|0xA9|&lt;br /&gt; |s140_nrf52_6.1.0|0xAE|&lt;br /&gt; |s140_nrf52_6.1.1|0xB6|&lt;br /&gt; |s140_nrf52_7.0.0|0xC1|&lt;br /&gt; |s140_nrf52_7.0.1|0xCA|&lt;br /&gt; |s212_nrf52_6.1.1|0xBC|&lt;br /&gt; |s332_nrf52_6.1.1|0xBA|&lt;br /&gt; |s340_nrf52_6.1.1|0xB9|&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/355582?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 13:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40a825ae-93a9-474f-91c8-9330db569a8f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;At least the --sd-req is described by writing&amp;nbsp;&lt;strong&gt;nrfutil pkg generate --help.&amp;nbsp;&lt;/strong&gt;The HW version I don&amp;#39;t have an excuse for, but it seems you guessed correctly. I&amp;#39;ll forward your feedback internally. Thank you!&lt;/p&gt;
&lt;p&gt;Yes, it&amp;#39;s hard to do debugging without the proper equipment. If you have a 10 pin cable and a 10-pin header you can also use the DK to debug the Dongle, but again this requires soldering on the 10 pin header onto the bottom of your nRF52 Dongle. Yes debugging using UART isn&amp;#39;t straight-forward I&amp;#39;m afraid, since it&amp;#39;s not really designed for development.&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: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/355381?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 20:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2abd0b18-9af3-4ebe-a926-fb3899b779f9</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;For flashing from the command line, I wound up using this procedure (which is not at all well-documented&amp;nbsp;for&amp;nbsp;nRF Connect users, IMO):&lt;/p&gt;
&lt;p&gt;pip3 install nrfutil&lt;br /&gt;cd build&lt;br /&gt;nrfutil pkg generate --debug-mode --hw-version 52 --sd-req 0 --application zephyr/merged.hex /tmp/dfu.zip&lt;br /&gt;nrfutil dfu usb-serial -pkg /tmp/dfu.zip -p /dev/cu.usbmodem* -b 115200&lt;/p&gt;
&lt;p&gt;Had to guess at the --hw-version and --sd-req values since I didn&amp;#39;t see any guidance for how to set them.&amp;nbsp; Other values failed.&lt;/p&gt;
&lt;p&gt;I have debugging accessories on order but it will take a few days.&amp;nbsp; In particular I wasn&amp;#39;t able to find a quick way (e.g. Amazon Prime) to get the 2x5 1.27mm debug header.&amp;nbsp; I tried running jumpers from SWDCLK/SWDIO to&amp;nbsp;a&amp;nbsp;cable attached to a J-Link Mini EDU but it looks like VREF, and maybe nRESET, are also required.&amp;nbsp; Too many pins for a hacky ad-hoc setup &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44e.svg" title="Thumbsdown"&gt;&amp;#x1f44e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_NFCT_PINS_AS_GPIOS=y is the default setting in&amp;nbsp;zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig and it is already enabled in my .config.&lt;/p&gt;
&lt;p&gt;UART TX on pin 22 doesn&amp;#39;t work any better than TX on pin 10.&amp;nbsp; I think something else is going wrong here.&amp;nbsp; Does nobody else ever try to enable a debug UART on the dongle boards?&amp;nbsp; This seems like a really basic request given the prevalence of printf() style debugging in the general population.&lt;/p&gt;
&lt;p&gt;SRAM_OFFSET only seems to be getting used in&amp;nbsp;zephyr/arch/x86/Kconfig for an emulated x86 system.&amp;nbsp; I think it has to be forced via Kconfig; I don&amp;#39;t think that I can change it from menuconfig or editing .config directly.&amp;nbsp; So I guess the 8 byte offset is no longer necessary on the dongle boards after moving from the legacy SDK to nRF Connect?&amp;nbsp; The blinky example worked fine without it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/355306?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 14:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfb9c03a-dccb-41d9-bd51-eee8dcd0e8b4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. The Programmer app is the easiest way to program the nRF52840 Dongle, but you can also use a debugger if you&amp;#39;re up for some soldering (described in the &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;Dongle programming tutorial&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;2. One red flag I noticed here. You say you&amp;#39;re using pins P0.09 and P0.10. These are NFC pins by default I think. Please try adding the following CONFIG to your project:&amp;nbsp;&lt;strong&gt;CONFIG_NFCT_PINS_AS_GPIOS=y&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;3. Where is SRAM_OFFSET set to 0 exactly? I would think this would be handled in the Dongles board files, but I can&amp;#39;t seem to find anything on it. I can ask internally how this behaves if you&amp;#39;d like. I would suggest setting the RAM offset to 8 to be on the safe side at least.&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: No UART or CLI flasher on nrf52840dongle?</title><link>https://devzone.nordicsemi.com/thread/355137?ContentTypeID=1</link><pubDate>Sun, 27 Feb 2022 06:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56a84418-ea27-4f37-98f5-d1b8d489ad6d</guid><dc:creator>mytzyiay</dc:creator><description>&lt;p&gt;Also I have:&lt;/p&gt;
&lt;p&gt;UART_CONSOLE_LOG_LEVEL(=3)&lt;br /&gt;UART_CONSOLE_LOG_LEVEL_DBG(=n) &amp;quot;Debug&amp;quot;&lt;br /&gt;UART_CONSOLE_LOG_LEVEL_ERR(=n) &amp;quot;Error&amp;quot;&lt;br /&gt;UART_CONSOLE_LOG_LEVEL_INF(=y) &amp;quot;Info&amp;quot;&lt;br /&gt;UART_CONSOLE_LOG_LEVEL_OFF(=n) &amp;quot;Off&amp;quot;&lt;br /&gt;UART_CONSOLE_LOG_LEVEL_WRN(=n) &amp;quot;Warning&amp;quot;&lt;br /&gt;UART_CONSOLE_MCUMGR(=n) &amp;quot;Enable UART console mcumgr passthrough&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>