<?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>nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114974/nrf52840-connection-to-load-mcuboot-zephyr</link><description>I am having problems in the JLink connection for nRF52840(RAK4631) to load MCUBoot+Zephyr application. In the RAK4631 RAKWireless bootloader, it is loaded using nrfutil by usb serial connection, for example &amp;quot; n rfutil.exe dfu serial -pkg rak4631_factory_bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Nov 2024 13:39:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114974/nrf52840-connection-to-load-mcuboot-zephyr" /><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/510503?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 13:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:464aa2d3-aa61-49ac-97d6-fe2c959b1cf0</guid><dc:creator>Claudio Rosa</dc:creator><description>&lt;p&gt;Not yet :-)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had a meeting with the Brazilian U-Blox Distributor and he told me that it is installed in the Zephyr as a module.&amp;nbsp; But I didn&amp;acute;t undertstoo how a &amp;quot;module&amp;quot; works in Zephyr.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will give new as soon as possible.&lt;/p&gt;
&lt;p&gt;claudio&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/510006?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 01:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25356306-41e8-4db0-bc90-5e6e54ac9ea5</guid><dc:creator>ruswerner</dc:creator><description>&lt;p&gt;Hi Claudio, Did you ever get the RAK12500 working with Zephyr? if so, can you please share? thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/505699?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 10:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:491220ee-e1b0-42ae-a5b4-be76d9430e88</guid><dc:creator>Claudio Rosa</dc:creator><description>&lt;p&gt;thank you by ypur sppoert.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cludio&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/503904?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 08:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b784ad34-d1d6-439c-a2db-12e3d88c7a24</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As you have a debugger you can erase everyting on the module so you do not need to think about what wast there before. But is the problem here that you are unanablet to debug? If you can back-track a bit and explain from a high level what you want to achieve that would be good.&lt;/p&gt;
&lt;p&gt;That said, assumign the problem is that you are not ble to program via the J-Link, I suggest you start with a recover operation. Make sure you have the latest nRF Command Line tools, and use &amp;quot;nrfjprog --recover&amp;quot;. This will open the debug port in case it was locked down by AP protect before. It will also erase the flash content during that operation. Does that work? And are you able pto program the device with what you want after that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/503831?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 18:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:421ae3e2-0382-44ad-a2ff-75cb3649ae77</guid><dc:creator>Claudio Rosa</dc:creator><description>&lt;p&gt;The entire environment is:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://github.com/RAKWireless/RAK4630-Amazon-Sidewalk-Example"&gt;RAK4631&lt;/a&gt;: a Zephyr supported solution with a Nordic nRF52840 + Semtech LoRa Radio SX1262.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK19007/Overview/#product-description"&gt;RAK19007&amp;nbsp;&lt;/a&gt;: a mother board for:
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK4631/Quickstart/#software-setup"&gt;RAK4631&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK1904/Datasheet/#description"&gt;RAK1904&lt;/a&gt;: LIS3DH accelerometer&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK1906/Datasheet/#overview"&gt;RAK1906&lt;/a&gt;: a Bosh BME680 environmento sensors&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK5801/Datasheet/#overview"&gt;RAK5801&lt;/a&gt;: a 4-20mA sensor + a pressure transducer&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK12500/Datasheet/#overview"&gt;RAK12500&lt;/a&gt;: GNSS ublox ZOE-M8&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK15007/Overview/#product-description"&gt;RAK15007&lt;/a&gt;: Infiniion SPI FRAM 1MByte&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.rakwireless.com/Product-Categories/WisBlock/RAK15002/Overview/#product-description"&gt;RAK15002&lt;/a&gt;: SD card reader&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The solution will be applied in a wagon in a train in the Railroad Company in Brazil, with &lt;strong&gt;19000 wagon&lt;/strong&gt;s.&lt;/p&gt;
&lt;p&gt;Claudio&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/503819?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 16:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e6fc0b9-b011-47cd-bd9d-3e9c8afc090e</guid><dc:creator>Claudio Rosa</dc:creator><description>&lt;p&gt;Let me clarify, I already tried to flash RAK4631(nRF52840) by VSCode/nRF Connect/Jlink, and nRF Connect for Desktop&amp;nbsp; v5.0.2 Programmer,&amp;nbsp; as you can see in the images below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the screenshot below you can see as &amp;quot;connected devices&amp;quot;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The nRF52840-DK, it is working fine&lt;/li&gt;
&lt;li&gt;The RAK4631 isn&amp;acute;t being reconized as a nRF52840.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Well, below I attached the connection schema that I am using to connect the RAK4631 with the JLink, but I think that I have a problem between JLink and RAK4631, but I don&amp;acute;t know what.&lt;/p&gt;
&lt;p&gt;Maybe I will need to rewrite the MBR, but I don&amp;acute;t know how.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the &lt;a href="https://docs.zephyrproject.org/latest/boards/rak/rak4631/doc/index.html"&gt;Zephyr documentation&amp;nbsp;&lt;/a&gt;&amp;nbsp;for my supported board RAK4631, I found:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;
&lt;p&gt;Connect the RAK4631 board to your host computer using the USB debug port. Then build and flash the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="reference internal" title="Print &amp;quot;Hello World&amp;quot; to the console." href="https://docs.zephyrproject.org/latest/samples/hello_world/README.html#hello_world"&gt;Hello World&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;application.&lt;/p&gt;
&lt;div class="highlight-shell notranslate"&gt;
&lt;div class="highlight"&gt;
&lt;pre id="codecell1"&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c1"&gt;# From the root of the zephyr repository&lt;/span&gt;
west&lt;span class="w"&gt; &lt;/span&gt;build&lt;span class="w"&gt; &lt;/span&gt;-b&lt;span class="w"&gt; &lt;/span&gt;rak4631/nrf52840&lt;span class="w"&gt; &lt;/span&gt;samples/hello_world
west&lt;span class="w"&gt; &lt;/span&gt;flash
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You should see &amp;ldquo;Hello World! rak4631_nrf52840&amp;rdquo; in your terminal.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Could you help me?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Claudio&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1727281948782v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1727281407230v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/RAK4631_5F00_JLink.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Imagem-do-WhatsApp-de-2024_2D00_09_2D00_24-_E0002800_s_2900_-06.29.21_5F00_59dadcc2.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/503807?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 14:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:805a2693-e51d-41ce-8c3b-0be0921802b3</guid><dc:creator>Claudio Rosa</dc:creator><description>&lt;p&gt;Let me explain better.&amp;nbsp; I will replace&amp;nbsp;&lt;span&gt;rak4631_factory_bootloade by&amp;nbsp;merge file merged.hex(MCUBoot+Zephyr).&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/503797?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 14:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fbf4e6f-fb45-4c29-a924-8de9a7fe9838</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I do not know what&amp;nbsp;rak4631_factory_bootloader contains or the details of what the&amp;nbsp;RAK4631 contains. But as you use nrfutil like this it includes the nRF5 SDK serial bootlaoder that may have modifications of some sort? It will not be possible in any way to remove the MBR with a DFU operation. It may be possible to remove the bootloader in an unsafe operation. You can read more about it &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/107266/update-from-nrf5-sdk-to-nrf-connect-sdk"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But I am curious about the context. Is this a product in your production line? Why do you not program it via a SWD programmer then? If not, you will have to maintain a combinatino of legacy nRF5 SDK comonents and nRF Connet SDK components, and I wonder what the benefits of this approach is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/503793?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 14:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1baf3b1-02ed-4ab5-8e53-a9a6459bd715</guid><dc:creator>Claudio Rosa</dc:creator><description>&lt;p&gt;Could I do it using the &amp;quot;&lt;strong&gt;n&lt;/strong&gt;rfutil.exe dfu serial -pkg rak4631_factory_bootloader.zip -p COM5&amp;quot; ?&amp;nbsp; I mean work with serial port to flash a merge file (MCUBoot+Zephyr).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 connection to load MCUBoot+Zephyr</title><link>https://devzone.nordicsemi.com/thread/503739?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 11:52:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a0ebaa8-cc03-40e6-a4e2-ad8b67ce0b0a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I have a nRF52840DK what there we have a JLink-OB, but for production environment it will be expensive for thousands devices, each one with his own JLink-OB.[/quote]
&lt;p&gt;You do not need a JLink-OB in the end product, but you need J-Link or other SWD programmers on the production line. Then you flash the device with what you need directly. The only thing you need to do on your hardware for supporting this is routing out the SWD lines so that you can hook up to it on the production line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>