<?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>From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112592/from-thingy53-to-custom-board</link><description>Hi community, 
 I`m trying to develop a custom board with nRF5340, now comes the question how to flash it? 
 The application was developed with the Thingy53. On Thingy53 the bootloader mode is activated by cycling the power during press the button SW2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jul 2024 13:23:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112592/from-thingy53-to-custom-board" /><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/492081?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 13:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05049a1f-1c0c-4da1-ab3a-11c2b2ddf6c9</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Happy to help!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As always please feel free to open new cases for new queries&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/492024?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 09:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c256f30c-073a-45c1-aebf-8778bd710d22</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;Thinks a lot!&lt;/p&gt;
&lt;p&gt;That answers my original questons. Have a nice day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/492018?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 09:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03efa9f9-0048-4863-bdce-e78061a5a3f0</guid><dc:creator>AHaug</dc:creator><description>[quote user="danny0007"]&lt;p&gt;This link describes two ways for updating firmware:&lt;br /&gt;&lt;span&gt;&lt;strong&gt;1. Firmware update using MCUboot bootloader&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This we have done many times through USB with nRF connect for Desktop, works fine for uns, no questions. we mostly flash our&amp;nbsp;dfu_application.zip file. The OTA also works fine.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2.&amp;nbsp;Firmware update using external debug probe&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;this we have never done, because we don´t have DK or Jlink in hand. We just&lt;strong&gt; assume&lt;/strong&gt; that a blank nRF5340 can aslo be programmed through USB with nRF connect for Desktop. Our PCB only with USB interface is on the way to us. Now we´re not sure, if it´s possible to program the &lt;em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;mcuboot/zephyr/zephyr.hex&lt;/em&gt; just through USB. Tried on Thingy failed as above said.&lt;/p&gt;[/quote]
&lt;p&gt;Thank you for verifying.&lt;/p&gt;
[quote user="danny0007"]we never used this command, don´t know under which conditions it will be used.&amp;nbsp;[/quote]
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog, which will be replaced with nrfutil (same usage as nrfjprog) is what is used under the hood when programming SoCs in VS Code&lt;/p&gt;
[quote user="danny0007"]that means the&amp;nbsp;&amp;nbsp;mcuboot/zephyr/zephyr.hex can only be flashed with J-LINK or DK, it also means a blank nRF5340 can only be flshed with J-LINK or DK. &lt;strong&gt;is this correct? If Yes, we need to deesign a new PCB.&lt;/strong&gt; &lt;strong&gt;this is the answer I have been seeking for.&lt;/strong&gt;[/quote]
&lt;p&gt;Yes, if you don&amp;#39;t have a bootloader already present on the board, or you&amp;#39;re not able to enter bootloader mode for said bootloader in place, then the only way you can program in the bootloader is with J-Link or through a DK/programmer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a description from another guide w.r.t how to program through SWD:&lt;/p&gt;
&lt;p&gt;----&lt;/p&gt;
&lt;p&gt;To program a System on Chip (SoC) with Serial Wire Debug (SWD), you will need a debug probe like the J-Link External Debug Probe. Here are the steps:&lt;/p&gt;
&lt;p&gt;1. Install the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/develop/flash_debug/host-tools.html#jlink-debug-host-tools"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/develop/flash_debug/host-tools.html#jlink-debug-host-tools&lt;/a&gt; and make sure they are in your search path.&lt;/p&gt;
&lt;p&gt;2. The board can be programmed using the [J-Link External Debug Probe](&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/develop/flash_debug/probes.html#jlink-external-debug-probe)"&gt;docs.nordicsemi.com/.../probes.html&lt;/a&gt;, provided the onboard debug circuit’s SWD signals are isolated from the MCU.&lt;/p&gt;
&lt;p&gt;3. To do so, ensure that jumpers J9 and J10 are **off** (they are on by default when the board ships from the factory). The external probe’s 20 pin connector can then be connected to J2 to program the SOC.&lt;/p&gt;
&lt;p&gt;For nRF5340 SoC, the required connections for nRF5340 DK v2 are as follows:&lt;/p&gt;
&lt;p&gt;| DK (programmer)P19 or P20 | Target boardSoC | Comments |&lt;br /&gt;| --- | --- | --- |&lt;br /&gt;| SWD CLK | SWDCLK | |&lt;br /&gt;| SWD IO | SWDIO | |&lt;br /&gt;| GND | GND | |&lt;br /&gt;| VTG | VDD | If using P20 |&lt;br /&gt;| SWD0 SEL | GND | If using P19 |&lt;br /&gt;| VDD nRF | VDD | If powering the external board from the DK |&lt;br /&gt;| RESET | RESET | Optional |&lt;/p&gt;
&lt;p&gt;If you have a bricked chip, you can perform &amp;quot;nrfjprog --eraseall&amp;quot; command to erase all and &amp;quot;nrfjprog --program new.hex --verify&amp;quot; to program a new image with the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94001/programming-custom-nrf5340-board-using-nrf5340-development-kit"&gt;Programming Custom nRF5340 Board Using nRF5340 Development Kit&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/492009?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 08:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e7ab0d-923a-4ca3-a5cd-9d0b5332c1b9</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Thanks for replying me.&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/112592/from-thingy53-to-custom-board/491969"]&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html&lt;/a&gt;&amp;nbsp;[/quote]
&lt;p&gt;we have developed our application on Thingy, so I think this is clear.&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/112592/from-thingy53-to-custom-board/491969"]&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/device_guides/nrf53/thingy53_application_guide.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/device_guides/nrf53/thingy53_application_guide.html&lt;/a&gt;[/quote]
&lt;p&gt;This link describes two ways for updating firmware:&lt;br /&gt;&lt;span&gt;&lt;strong&gt;1. Firmware update using MCUboot bootloader&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This we have done many times through USB with nRF connect for Desktop, works fine for uns, no questions. we mostly flash our&amp;nbsp;dfu_application.zip file. The OTA also works fine.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2.&amp;nbsp;Firmware update using external debug probe&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;this we have never done, because we don&amp;acute;t have DK or Jlink in hand. We just&lt;strong&gt; assume&lt;/strong&gt; that a blank nRF5340 can aslo be programmed through USB with nRF connect for Desktop. Our PCB only with USB interface is on the way to us. Now we&amp;acute;re not sure, if it&amp;acute;s possible to program the &lt;em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;mcuboot/zephyr/zephyr.hex&lt;/em&gt; just through USB. Tried on Thingy failed as above said.&lt;/p&gt;
[quote userid="107683" url="~/f/nordic-q-a/112592/from-thingy53-to-custom-board/491969"]nrfjprog -f NRF53 --sectorerase --program mcuboot/zephyr/zephyr.hex --verify[/quote]
&lt;p&gt;we never used this command, don&amp;acute;t know under which conditions it will be used.&amp;nbsp;&lt;br /&gt;After googling, find out:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrfjprog executable - tool for programming through SEGGER J-LINK programmers and debuggers&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;that means the&amp;nbsp;&amp;nbsp;mcuboot/zephyr/zephyr.hex can only be flashed with J-LINK or DK, it also means a blank nRF5340 can only be flshed with J-LINK or DK. &lt;strong&gt;is this correct? If Yes, we need to deesign a new PCB.&lt;/strong&gt; &lt;strong&gt;this is the answer I have been seeking for.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491969?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 07:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5274bcca-162b-49a1-b209-6c0e6f8ad45e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="danny0007"]Ok, I think I find the answer here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84007/does-mcuboot-have-a-mechanisms-to-update-the-bootloader-itself#:~:text=It%20is%20not%20possible%20for,immutable%20bootloader%20to%20your%20solution."&gt;Does mcuboot have a mechanisms to update the bootloader itself? - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;[/quote]
&lt;p&gt;I&amp;#39;m not quite sure this answers what you&amp;#39;re asking since this is simply the procedure for how to update the bootloader and not how to program it. In other words this is a different topic than programming the bootloader&lt;/p&gt;
[quote user="danny0007"]then my question will be how can I&amp;nbsp;do the very first flash for a blank nRF5340?&amp;nbsp;[/quote][quote user="danny0007"]I want to reflash the blue area, not the red and green area.[/quote]
&lt;p&gt;This is explained in the links I&amp;#39;ve sent you in my previous replies. Copy pasting what I previously wrote once more:&lt;/p&gt;
&lt;blockquote&gt;&lt;/blockquote&gt;
&lt;p&gt;I assume that you&amp;#39;ve seen the working with the Thingy:53, but in case you haven&amp;#39;t here&amp;#39;s another two link that you should have a look at&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/device_guides/nrf53/thingy53_application_guide.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/device_guides/nrf53/thingy53_application_guide.html&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you following this guide when programming the bootloader through nRF Connect for Desktop?&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html#getting_started_with_precompiled_firmware_samples"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html#getting_started_with_precompiled_firmware_samples&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;Could you try using&amp;nbsp;&lt;em&gt;nrfjprog -f NRF53 --sectorerase --program mcuboot/zephyr/zephyr.hex --verify.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491928?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 18:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:226d1183-eda7-4bc3-b11f-5e19c282ceba</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;Ok, I think I find the answer here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84007/does-mcuboot-have-a-mechanisms-to-update-the-bootloader-itself#:~:text=It%20is%20not%20possible%20for,immutable%20bootloader%20to%20your%20solution."&gt;Does mcuboot have a mechanisms to update the bootloader itself? - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;then my question will be how can I&amp;nbsp;do the very first flash for a blank nRF5340?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491924?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 17:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f049cac-a98e-46bb-b2e1-192f125d496f</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;I want to reflash the blue area, not the red and green area.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719942541000v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491922?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 17:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eab978f-547d-4564-89a4-712a23431906</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;By the way, I don&amp;acute;t have DK board, only Thingy53.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491921?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 17:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b374a31-6436-4261-bccc-8240e51c5092</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;thanks for replying me.&lt;/p&gt;
&lt;p&gt;my application is developed on Thingy53, the most functionalities I need are working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SPI/I2C, sensors, DFU through USB with Programmer from nRF Connect for Desktop, DFU through BLE...that means I have no problem with updating of the normal Applications. Everything is working fine. Now I did my custom board and want to further the development on my custom board. the custom board is blank, without mcuboot/bootloader. How to put it in bootloader mode? before I can flash the application through USB.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me ask the question in this way:&lt;br /&gt;how to erase or replace or reflash the mcuboot/bootloader of Thingy53? because this is what I&amp;acute;m going to do for my custom board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to do this only through the existed USB-C on Thingy53, as the way I flash normal applications through Programmer from nRF Connect for Desktop? or I need to use the SWD interface?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491736?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 07:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff19e1ad-c57d-4572-a1f4-90096f7119a5</guid><dc:creator>AHaug</dc:creator><description>[quote user="danny0007"]The MCUboot(Bootloader) will be&amp;nbsp; automatically compiled if&lt;strong&gt;&amp;nbsp;&lt;em&gt;CONFIG_BOOTLOADER_MCUBOOT=y &lt;/em&gt;&lt;/strong&gt;is set in the project conf file.&amp;nbsp;[/quote]
&lt;p&gt;This is correct, for multi image builds such as a build including MCUboot/bootloader and an app, you must also make sure that you meet the conditions mentioned in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/config_and_build/multi_image.html#ug-multi-image"&gt;multi-image builds documentation&lt;/a&gt;&amp;nbsp;as well as this one specifically mentioned for&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/device_guides/nrf53/multi_image_nrf5340.html"&gt;the nrf5340&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Do note that there will be changes w.r.t the parent/child support in upstream Zephyr so there might be some changes when sysbuild is introduced in 2.7.0/later releases of NCS.&lt;/p&gt;
[quote user="danny0007"]the Bootload can be found under project_name\build\mcuboot\zephyr\&lt;strong&gt;zephyr.hex&lt;/strong&gt;[/quote]
&lt;p&gt;This is also correct&lt;/p&gt;
[quote user="danny0007"]I tried to use the Programmer from nRF Connect for Desktop to flash this hex file inito thingy53, but failed as followed[/quote]
&lt;p&gt;I assume that you&amp;#39;ve seen the working with the Thingy:53, but in case you haven&amp;#39;t here&amp;#39;s another two link that you should have a look at &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/device_guides/nrf53/thingy53_application_guide.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/device_guides/nrf53/thingy53_application_guide.html&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you following this guide when programming the bootloader through nRF Connect for Desktop?&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html#getting_started_with_precompiled_firmware_samples"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0-rc2/page/nrf/gsg_guides/thingy53_gs.html#getting_started_with_precompiled_firmware_samples&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="danny0007"]Until here not explained what is built and flashed?[/quote]
&lt;p&gt;Thats right. When building all of the components are built as a default to ensure that versions and signings are matching. You can choose to set up the build system/configure your project so that you only build MCUboot or the application, but then you will have to manually sign all of the images with the same key to ensure that they are compatible with each other.&lt;/p&gt;
[quote user="danny0007"]Again, I want to know how to flash the Bootloader in an empty nRF5340.[/quote]
&lt;p&gt;&lt;span&gt;Could you try using &lt;em&gt;nrfjprog -f NRF53 --sectorerase --program mcuboot/zephyr/zephyr.hex --verify&amp;nbsp;&lt;/em&gt;on a DK if you have one available to verify that this works on the 53 DK and then try to use this command on the Thingy through the DK?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491688?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 20:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0144aa8-3b98-4575-bb68-d924b3b1cb86</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;same topic was also discussed here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.reddit.com/r/embedded/comments/1c7mpjl/do_nordic_chips_specifically_nrf5340_come_flashed/"&gt;Do Nordic chips (specifically nrf5340) come flashed with a bootloader straight out of the factory? : r/embedded (reddit.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If it&amp;acute;s not possible to flash the bootloader through USB directly, I&amp;acute;m also considering to use the SWD interface on chip, then comes another question, which flash tools are recommanded? Hardware and software?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491686?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 19:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abdbd88c-2c14-414a-91c5-3cd20c2992c6</guid><dc:creator>danny0007</dc:creator><description>&lt;p&gt;Hi AHaug,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for replying me.&lt;/p&gt;
&lt;p&gt;I go throgh the lessons again, It&amp;acute;s more about &lt;strong&gt;DFU&lt;/strong&gt;. not about how to flash the&lt;strong&gt; Bootloader&lt;/strong&gt; in a empty nRF5340.&lt;/p&gt;
&lt;p&gt;My understanding is like this, please correct me, if I&amp;acute;m wrong.&lt;/p&gt;
&lt;p&gt;The MCUboot(Bootloader) will be&amp;nbsp; automatically compiled if&lt;strong&gt;&amp;nbsp;&lt;em&gt;CONFIG_BOOTLOADER_MCUBOOT=y &lt;/em&gt;&lt;/strong&gt;is set in the project conf file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the Bootload can be found under project_name\build\mcuboot\zephyr\&lt;strong&gt;zephyr.hex&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I tried to use the Programmer from nRF Connect for Desktop to flash this hex file inito thingy53, but failed as followed:&lt;/p&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;&lt;span style="color:#ff0000;"&gt;11:33:15.271&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;&lt;span style="color:#ff0000;"&gt;11:33:15.271&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;MCUboot DFU failed with error: Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="core19-log-entry core19-log-level-error"&gt;
&lt;div class="core19-log-cell core19-log-time"&gt;&lt;span style="color:#ff0000;"&gt;11:33:15.271&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;Error: Failed with exit code 1. One or more program tasks failed. Message: Failed, [mcuBoot] Unable to parse MCUBoot image file. Unable to parse image header: invalid magic value.&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;In the Exercise 2 of Lesson 8,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719863297550v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;Until here not explained what is built and flashed? If only the Application, then it&amp;acute;s also not what i`m looking for.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="core19-log-cell"&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;Again, I want to know how to flash the Bootloader in an empty nRF5340.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: From Thingy53 to custom board</title><link>https://devzone.nordicsemi.com/thread/491503?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 08:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ae91ae-f621-4a52-94ae-1f8e73bbbd2e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;1. how to customize/develop the bootloader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote][quote user=""]3. how to flash the custom bootloader?[/quote]
&lt;p&gt;The best way to approach this is for you to go through our bootloader course on our academy pages throgouhly&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. Is it possible to use another pin for activating the bootloader mode?[/quote]
&lt;p&gt;Yes, see the first lesson in the bootloader course for how to use a button to enter bootloader mode.&lt;/p&gt;
&lt;p&gt;This course links to our official documentation and does also include on part w.r.t custom boards that you should find helpful.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>