<?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>Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81291/thingy91-process-to-flash-s340-and-52840</link><description>Hi, I have been doing my development on the 9160DK and now its time to move the code over to the thingy 91. I managed to get the 9160 flashed by following ( https://devzone.nordicsemi.com/guides/cellular-iot-guides/b/getting-started-cellular/posts/how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Nov 2021 09:55:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81291/thingy91-process-to-flash-s340-and-52840" /><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/341019?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 09:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3df74b0e-e20c-47f0-82c6-63ab1171ae07</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="Brett"]&lt;p&gt;Thank You !!&lt;/p&gt;
&lt;p&gt;That was the answer, I should have RTM - it was all there - code runs now as it does on the 9160 DK.&lt;/p&gt;[/quote]
&lt;p lang="en-GB"&gt;My pleasure, Brett! I’m glad to hear that it works now :-)&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Cheers,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340957?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 19:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76bc30a7-8964-4b68-bfc3-b5ad58a8040d</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You !!&lt;/p&gt;
&lt;p&gt;That was the answer, I should have RTM - it was all there - code runs now as it does on the 9160 DK.&lt;/p&gt;
&lt;p&gt;In the end:&lt;br /&gt;&lt;strong&gt;52840:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;.tx_pin = 25,
.rx_pin = 32,&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;9160:&lt;/strong&gt;&lt;br /&gt;&amp;amp;uart1 {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = &amp;quot;okay&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; current-speed = &amp;lt;115200&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hw-flow-control;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tx-pin = &amp;lt;22&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rx-pin = &amp;lt;23&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rts-pin = &amp;lt;24&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts-pin = &amp;lt;25&amp;gt;;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;regards&lt;br /&gt;-brett&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340908?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 12:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99ca0597-2b7c-47ec-a590-1f48ff551eb5</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Brett,&lt;/p&gt;
[quote user="Brett"]Yes I am, thats how I was connecting UART&amp;#39;s between the 52840 and the 9160.&amp;nbsp; I gather based on your question, I need to use different pins in the thingy vs the 9160DK.[/quote]
&lt;p lang="en-GB"&gt;Yes, this is my theory at least :-) See, the SWD interface can also be controlled by the nRF52840, as explained &lt;a href="https://infocenter.nordicsemi.com/topic/ug_thingy91/UG/thingy91/hw_description/programming_debugging_interface.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5857.pastedimage1637930381183v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;And according to the Thingy:91 &lt;a href="https://infocenter.nordicsemi.com/topic/ug_thingy91/UG/thingy91/hw_description/pin_maps.html"&gt;pin mapping&lt;/a&gt;, P0.14 and P0.17 of the nRF52840 are assigned to the nRF9160 SWD interface data/control line.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;P0.14	IF_SWD_IO	nRF9160 SWD interface data line
P0.17	IF_SWD_CTRL	nRF9160 SWD interface control&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;So what I think happens here is that your nRF52840 application interferes the nRF9160 SWD interface control line and causes the trouble your are currently facing.&lt;/p&gt;
&lt;p lang="en-GB"&gt;However, in order to establish a proper UART connection between the nRF9160 &amp;amp;nRF52840, you might need to change the pin configuration anyway. The pictures below provide you with an overview of which pins you can choose from, respectively. They&amp;nbsp;are taken from the latest Thingy:91 schematic and PCB layout file, which can be downloaded &lt;a href="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Dev-Kits/Thingy91/Hardware-files/Thingy91---Hardware-files-1_6_0.zip"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6428.pastedimage1637930263929v4.png" alt=" " /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7633.pastedimage1637930269381v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340804?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 21:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33ab4d52-4488-472c-85d4-f03ded880ec3</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Markus:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes I am, thats how I was connecting UART&amp;#39;s between the 52840 and the 9160.&amp;nbsp; I gather based on your question, I need to use different pins in the thingy vs the 9160DK.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;52840:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;nrf_libuarte_async_config_t nrf_libuarte_async_config = {
      .tx_pin = 17,
      .rx_pin = 20,
      .baudrate = NRF_UARTE_BAUDRATE_115200,
      .parity = NRF_UARTE_PARITY_EXCLUDED,
      .hwfc = NRF_UARTE_HWFC_DISABLED,
      .timeout_us = 100,
      .int_prio = APP_IRQ_PRIORITY_LOW};&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;9160:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;amp;uart1 {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = &amp;quot;okay&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; current-speed = &amp;lt;115200&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hw-flow-control;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tx-pin = &amp;lt;18&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rx-pin = &amp;lt;17&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rts-pin = &amp;lt;19&amp;gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts-pin = &amp;lt;21&amp;gt;;&lt;br /&gt;}:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340705?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 11:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf567c84-1a60-48b4-91ad-efeaf0de6774</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Brett,&lt;/p&gt;
[quote user="Brett"]Its only when I load them both together I am unable to test, as I cant connect to the 9160 interface for debugging.[/quote]
&lt;p lang="en-GB"&gt;Thanks a lot for the detailed feedback! Are you possibly using P.014 and/or P0.17 in your nRF52840 application?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340697?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 11:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13580c50-a767-4e46-831c-27b7e688c8dd</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hey Markus,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;One more comment for today, after some testing:&lt;/p&gt;
&lt;p&gt;I tested each set of code individually and they work independently, I still have the issue of not being able to access the 9160 when I have my code on the 52840, but:&lt;br /&gt;&lt;br /&gt;52840 : (9160 is empty/erased) - receives ANT+ messages and displays them in the log&lt;br /&gt;&lt;br /&gt;9160 : (52840 is empty/erased) - connects to MQTT server, receives GPS and sends to MQTT&lt;br /&gt;&lt;br /&gt;Its only when I load them both together I am unable to test, as I cant connect to the 9160 interface for debugging.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340610?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 19:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:addf140f-3508-4841-b6d9-5cdebca3a9cd</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Markus,&lt;br /&gt;&lt;br /&gt;I also noticed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I have the&amp;nbsp;JLinkExe connected to the 9160 and then try to connect again from the nrfConnect programmer, I get the same error, `&lt;span&gt;Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)`.&lt;br /&gt;&lt;br /&gt;Is there any way my code is doing something which has the same effect as this ? Be that, opening a port, clocking , UART or ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All of this works on the 9160DK, is there something fundamentally different between the thingy91 and 9160DK which I have not catered for ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;br /&gt;-brett&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340607?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 19:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0eafc5d-acdf-4501-aefb-5794d285b8cc</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;A few more debugs:&lt;br /&gt;&lt;br /&gt;This is with my code on&amp;nbsp;the 52840 and SW2 on nRF91:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;JLinkExe -if SWD&lt;/strong&gt;&lt;br /&gt;SEGGER J-Link Commander V6.88a (Compiled Nov 18 2020 15:09:53)&lt;br /&gt;DLL version V6.88a, compiled Nov 18 2020 15:09:35&lt;/p&gt;
&lt;p&gt;Connecting to J-Link via USB...O.K.&lt;br /&gt;Firmware: J-Link EDU Mini V1 compiled Feb 18 2021 11:25:23&lt;br /&gt;Hardware version: V1.00&lt;br /&gt;S/N: 801036805&lt;br /&gt;License(s): FlashBP, GDB&lt;br /&gt;VTref=1.788V&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help&lt;br /&gt;J-Link&amp;gt;connect&lt;br /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: CORTEX-M4&lt;br /&gt;Type &amp;#39;?&amp;#39; for selection dialog&lt;br /&gt;Device&amp;gt;?&lt;br /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;br /&gt;Speed&amp;gt;&lt;br /&gt;Device &amp;quot;NRF9160_XXAA&amp;quot; selected.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Connecting to target via SWD&lt;br /&gt;ConfigTargetSettings() start&lt;br /&gt;---Setting ROM table---&lt;br /&gt;ConfigTargetSettings() end&lt;br /&gt;ConfigTargetSettings() start&lt;br /&gt;---Setting ROM table---&lt;br /&gt;ConfigTargetSettings() end&lt;br /&gt;ConfigTargetSettings() start&lt;br /&gt;---Setting ROM table---&lt;br /&gt;ConfigTargetSettings() end&lt;br /&gt;ConfigTargetSettings() start&lt;br /&gt;---Setting ROM table---&lt;br /&gt;ConfigTargetSettings() end&lt;br /&gt;Cannot connect to target.&lt;/p&gt;
&lt;p&gt;I then SW2 (nRF52) erased my code, put it back on the 9160 SW2 (nRF91) and did the same:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;JLinkExe -if SWD&lt;/strong&gt;&lt;br /&gt;SEGGER J-Link Commander V6.88a (Compiled Nov 18 2020 15:09:53)&lt;br /&gt;DLL version V6.88a, compiled Nov 18 2020 15:09:35&lt;/p&gt;
&lt;p&gt;Connecting to J-Link via USB...O.K.&lt;br /&gt;Firmware: J-Link EDU Mini V1 compiled Feb 18 2021 11:25:23&lt;br /&gt;Hardware version: V1.00&lt;br /&gt;S/N: 801036805&lt;br /&gt;License(s): FlashBP, GDB&lt;br /&gt;VTref=1.791V&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help&lt;br /&gt;J-Link&amp;gt;connect&lt;br /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: CORTEX-M33&lt;br /&gt;Type &amp;#39;?&amp;#39; for selection dialog&lt;br /&gt;Device&amp;gt;&lt;br /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;br /&gt;Speed&amp;gt;&lt;br /&gt;Device &amp;quot;CORTEX-M33&amp;quot; selected.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Connecting to target via SWD&lt;br /&gt;Found SW-DP with ID 0x6BA02477&lt;br /&gt;SWD speed too high. Reduced from 4000 kHz to 2025 kHz for stability&lt;br /&gt;DPIDR: 0x6BA02477&lt;br /&gt;Scanning AP map to find all available APs&lt;br /&gt;AP[7]: Stopped AP scan as end of AP map has been reached&lt;br /&gt;AP[0]: AHB-AP (IDR: 0x84770001)&lt;br /&gt;AP[1]: AHB-AP (IDR: 0x24770011)&lt;br /&gt;AP[2]: JTAG-AP (IDR: 0x12880000)&lt;br /&gt;AP[3]: APB-AP (IDR: 0x54770002)&lt;br /&gt;AP[4]: JTAG-AP (IDR: 0x12880000)&lt;br /&gt;AP[5]: JTAG-AP (IDR: 0x12880000)&lt;br /&gt;AP[6]: MEM-AP (IDR: 0x128800A1)&lt;br /&gt;Iterating through AP map to find AHB-AP to use&lt;br /&gt;AP[0]: Core found&lt;br /&gt;AP[0]: AHB-AP ROM base: 0xE00FF000&lt;br /&gt;CPUID register: 0x410FD212. Implementer code: 0x41 (ARM)&lt;br /&gt;Found Cortex-M33 r0p2, Little endian.&lt;br /&gt;FPUnit: 8 code (BP) slots and 0 literal slots&lt;br /&gt;Security extension: implemented&lt;br /&gt;Secure debug: enabled&lt;br /&gt;CoreSight components:&lt;br /&gt;ROMTbl[0] @ E00FF000&lt;br /&gt;ROMTbl[0][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33&lt;br /&gt;ROMTbl[0][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT&lt;br /&gt;ROMTbl[0][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB&lt;br /&gt;ROMTbl[0][3]: E0000000, CID: B105900D, PID: 000BBD21 ITM&lt;br /&gt;ROMTbl[0][5]: E0041000, CID: B105900D, PID: 002BBD21 ETM&lt;br /&gt;ROMTbl[0][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI&lt;br /&gt;Cortex-M33 identified.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340604?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 19:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3493d77-2bc9-4f35-bbdb-49a9af483d4a</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Yes&amp;nbsp;the selector is on nRF91.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I change the switch to nRF91, and then do a read, or close/open the device or powercycle the device I always get the error:&lt;br /&gt;`2021-11-24T10:35:26.001Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)`&lt;/p&gt;
&lt;p&gt;This only happens when I have my code loaded onto the 52840.&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340527?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 11:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4279f68-f77f-4b58-9ba4-9b781acb7ef6</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks for the valuable feedback, Brett!&lt;/p&gt;
[quote user="Brett"]* SW 9160 - read (fails with the error you can see a the bottom of the log)[/quote]
&lt;p lang="en-GB"&gt;I’m a little bit confused here, because the log does not say nRF9160:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;2021-11-24T10:35:03.512Z INFO Using nrfjprog to communicate with target
2021-11-24T10:35:04.420Z INFO Using J-Link Software version 6.88
2021-11-24T10:35:05.170Z INFO Segger serial:  801036805
2021-11-24T10:35:05.170Z INFO Segger speed:  2000  kHz
2021-11-24T10:35:05.170Z INFO Segger version:  J-Link EDU Mini V1 compiled Feb 18 2021 11:25:23
2021-11-24T10:35:05.171Z INFO Core probed: 801036805
2021-11-24T10:35:05.171Z INFO Core RAM: 256KiB
2021-11-24T10:35:05.171Z INFO Core ROM: 1024KiB in pages of 4KiB
2021-11-24T10:35:05.291Z INFO Model: NRF52840_xxAA_REV2.
2021-11-24T10:35:06.083Z INFO Core0: Reading device non-volatile memory. This may take a few seconds.
2021-11-24T10:35:15.877Z INFO Core0: Non-volatile memory has been read. 4 non-empty memory blocks identified 
2021-11-24T10:35:15.987Z INFO SoftDevice detected, id 0xCE (S340 v7.0.1)
2021-11-24T10:35:15.990Z INFO SoftDevice detected, id 0xCE (S340 v7.0.1)
2021-11-24T10:35:25.414Z INFO Using nrfjprog to communicate with target
2021-11-24T10:35:26.001Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)
Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)

2021-11-24T10:38:39.050Z ERROR Unable to open log file: Could not find file at path: /Users/bdunstan/Library/Application Support/nrfconnect/pc-nrfconnect-programmer/logs/2021-11-24T04_00_30.042Z-log.txt
2021-11-24T10:38:41.589Z ERROR Unable to open log file: Could not find file at path: /Users/bdunstan/Library/Application Support/nrfconnect/pc-nrfconnect-programmer/logs/2021-11-24T04_00_30.042Z-log.txt&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="text"&gt;2021-11-24T10:35:05.291Z INFO Model: NRF52840_xxAA_REV2.&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Have you switched SWD SELECT (SW2) to nRF91?&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637754892723v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340517?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 10:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ade57f8-8867-429f-aed9-3602071398a0</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2021_2D00_11_2D00_24T04_5F00_00_5F00_30.042Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../2021_2D00_11_2D00_24T04_5F00_00_5F00_30.042Z_2D00_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sorry, but wasnt sure how to add attachments...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340515?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 10:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d33f33b1-cb90-4094-b896-56186c6f67f4</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
[quote userid="100109" url="~/f/nordic-q-a/81291/thingy91-process-to-flash-s340-and-52840/340354#340354"]&lt;ul&gt;&lt;li lang="en-GB"&gt;&lt;p lang="en-GB"&gt;Are you generally able to flash the Connectivity Bridge and a nRF9160 application from the firmware package mentioned in my previous post?&lt;/p&gt;
&lt;/li&gt;
&lt;li lang="en-GB"&gt;
&lt;p lang="en-GB"&gt;Which tool are you using respectively to flash your applications?&lt;/p&gt;
&lt;/li&gt;
&lt;li lang="en-GB"&gt;
&lt;p lang="en-GB"&gt;Can you once again provide me with a log showing the error you are facing while trying to flash the nRF9160?&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;* I have flashed the connectivity bridge to the 52840 - no problems and also the asset-tracker app to the 9160 - no problems&lt;/p&gt;
&lt;p&gt;* I generally use the nrf-connect programmer to flash images&amp;nbsp;to 52840 and 9160 - as well as the soft device. But, I have also used nrfjprog to flash the soft device and west to flash the other image - same issue occurs.&lt;br /&gt;&lt;br /&gt;I have attached a log file to the case, of which it contains:&lt;br /&gt;&lt;br /&gt;* SW 9160 - erase all (successful)&lt;br /&gt;* SW 52840 - erase all (successful)&lt;br /&gt;* SW 52840 - write my image (successful)&lt;br /&gt;* SW 9160 - read (fails with the error you can see a the bottom of the log)&lt;br /&gt;&lt;br /&gt;`2021-11-24T10:35:26.001Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&amp;nbsp;Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a) `&lt;br /&gt;&lt;br /&gt;I like the theory of the different tool-chains, but how to get around this - as I need ANT+ which is only supported in the old SDK (or thats what I was told).&lt;br /&gt;&lt;br /&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340354?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 13:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f2593c0-e76c-4b08-9fbd-09713e648763</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Thanks a lot again for your detailed explanation of the issue, Brett!&lt;/p&gt;
[quote user="Brett"]In reading the docs, I didnt see anything about an order in which you had to flash the images, so I am sure I am doing something wrong :).[/quote]
&lt;p lang="en-GB"&gt;Generally, the nRF9160 and nRF52840 should be able to operate independently from each other on the Thingy:91. So I’m a bit surprised that you are facing this issue.&lt;/p&gt;
&lt;p lang="en-GB"&gt;However, I do not have any experience with software from two different tool chains running on the Thingy:91. And unfortunately, I do not have my Thingy:91 available for at least this week. Anyway, let us see what we can do here.&lt;/p&gt;
&lt;ul&gt;
&lt;li lang="en-GB"&gt;
&lt;p lang="en-GB"&gt;Are you generally able to flash the Connectivity Bridge and a nRF9160 application from the firmware package mentioned in my previous post?&lt;/p&gt;
&lt;/li&gt;
&lt;li lang="en-GB"&gt;
&lt;p lang="en-GB"&gt;Which tool are you using respectively to flash your applications?&lt;/p&gt;
&lt;/li&gt;
&lt;li lang="en-GB"&gt;
&lt;p lang="en-GB"&gt;Can you once again provide me with a log showing the error you are facing while trying to flash the nRF9160?&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks and regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340325?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 12:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85395444-bf7a-4a20-87aa-ee94baf76cba</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Markus,&lt;br /&gt;&lt;br /&gt;More than happy to start again, there is a whole lot of stuff above.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Connection:&lt;/strong&gt;&lt;br /&gt;* I am connected the same as the picture above and I also have a j-link edu mini that I am using, both give the same outcome.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Project Objective:&lt;/strong&gt;&lt;br /&gt;Receive&amp;nbsp;Bike power data via ANT+ on the 52840 (soft device 340) transfer this data over UART to the 9160, so it can then send the data (with GPS) to an MQTT receiver.&amp;nbsp; All of the code works on the 9160DK, so it was now time to transfer it to the thingy 91, which is where I am stuck.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Details:&lt;/strong&gt;&lt;br /&gt;I can flash the 52840 with out a problem and the code I have appears to work.&amp;nbsp; I connected via Jlink and can see the NRF_LOG messages coming to the terminal window, that all looks good.&amp;nbsp; Appears to work means, I can receive ANT+ messages from my bike power meter and able to LOG them to the terminal - UART connection to the 9160 is not yet successful.&lt;/p&gt;
&lt;p&gt;I can flash the 9160 image, as long as I dont have any code on the 52840.&amp;nbsp; So, if I erase-all on the 52840, I can flash the image fine.&amp;nbsp; But, if I have my image on the 52840 first, I am unable to falsh the 9160. Today, I managed to get some debug messages on the RTT-Terminal window, but have not done enough testing to confirm if its actually getting the GPS co-ordinates correctly, or connecting to the network correctly - I will test that tomorrow.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&lt;br /&gt;The real issue that I am faced with at the moment is, if I have my image flashed to the 52840, I cant flash the 9160.&amp;nbsp; If I flash the 9160 first, I can flash the 52840 - but have not then been able to connect back onto the 9160 - until I remove the image from the 52840. If I remove the 51840 image, I can then connect back onto the 9160 and see the image that I originally flashed.&lt;br /&gt;&lt;br /&gt;In reading the docs, I didnt see anything about an order in which you had to flash the images, so I am sure I am doing something wrong :).&lt;br /&gt;&lt;br /&gt;I can record a screen capture of what I am doing if that helps, or I have pushed my latest code to github if&amp;nbsp; you are interested.&amp;nbsp; If you would like a flow diagram of the project, I can easily draw one.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;9160 :&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/bdunstan/gps_iot_thingy"&gt;github.com/.../gps_iot_thingy&lt;/a&gt;&lt;br /&gt;&lt;span&gt;52840:&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/bdunstan/ant_app_libUARTE"&gt;github.com/.../ant_app_libUARTE&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340283?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 09:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4eff2bd-a716-4ea5-8e6b-0b738783099f</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="Brett"]&lt;p&gt;Status is basically the same, whenever I load my code on the 52840, the 9160 is inaccessible.&lt;/p&gt;
&lt;p&gt;I can confirm the 52840 code is flashed correctly, as I can get some printf() logs&amp;nbsp;on the debug&amp;nbsp;terminal (NRF_LOG not working yet).&lt;/p&gt;[/quote]
&lt;p lang="en-GB"&gt;Thanks a lot for the feedback! I honestly struggle a little bit with remembering all the details here, so I would appreciate if we could start all over again :-)&lt;/p&gt;
&lt;p lang="en-GB"&gt;Is the Thingy:91 setup you have according to the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_thingy91_gsg/UG/thingy91_gsg/updating_fw_ext_probe.html"&gt;picture&lt;/a&gt; below?&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637660839952v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;And are you in general able to successfully flash the nRF52840 with the Connectivity bridge and respectively the nRF9160 with one of the other applications included in this &lt;a href="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Dev-Kits/Thingy91/thingy91_fw_2021-10-20_d29f1dde.zip"&gt;firmware package&lt;/a&gt;?&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637660963448v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340189?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 19:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf39b2a-37da-42a8-b2c0-dae7681a06e1</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;Status is basically the same, whenever I load my code on the 52840, the 9160 is inaccessible.&lt;/p&gt;
&lt;p&gt;I can confirm the 52840 code is flashed correctly, as I can get some printf() logs&amp;nbsp;on the debug&amp;nbsp;terminal (NRF_LOG not working yet).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/340066?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 12:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8dddee8-fabe-4cad-8f17-0f2dbcb28a13</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Brett,&lt;/p&gt;
&lt;p lang="en-GB"&gt;my apologies for the delayed answer! I will take over this case from Kenneth.&lt;/p&gt;
[quote user="Brett"]No matter what I do, as soon as I flash anything to the 52840, I am unable to re-access the 9160.&amp;nbsp; If I erase the 52840 I can see the 9160 and the image that was flashed to it.[/quote]
&lt;p lang="en-GB"&gt;Is the status still the same or have you been able to make some progress?&lt;/p&gt;
&lt;p lang="en-GB"&gt;I need to read through the whole case and dive a little into the issue. I will come back to you as soon as possible.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/339898?ContentTypeID=1</link><pubDate>Sat, 20 Nov 2021 05:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbdc6ee2-8cb1-4c80-82df-7aa82fd56742</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I was a bit optimistic when I said I got it to work &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;No matter what I do, as soon as I flash anything to the 52840, I am unable to re-access the 9160.&amp;nbsp; If I erase the 52840 I can see the 9160 and the image that was flashed to it.&lt;br /&gt;&lt;br /&gt;In all cases, my code on 5280 = no access to 9160.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you confirm my original logic: all code was built and works fine on the 9160DK but I cant get it to work on the thingy.&lt;br /&gt;* 9160 = using zephr&lt;br /&gt;* 52840 = software is using ANT+ therefore, I require the s340 softdevice and am using the legacy nRF5 SDK - since its not supported in zephyr.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have put my code on github if there is anything that will help define what I am doing wrong, I will continue to test.&lt;br /&gt;&lt;br /&gt;9160 : &lt;a href="https://github.com/bdunstan/gps_iot_thingy"&gt;github.com/.../gps_iot_thingy&lt;/a&gt;&lt;br /&gt;52840: &lt;a href="https://github.com/bdunstan/ant_app_libUARTE"&gt;github.com/.../ant_app_libUARTE&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/339734?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 05:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f8f943-73a5-47d7-9376-5d95e321b1ec</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I got it to work, but want to confirm my logic.&lt;br /&gt;&lt;br /&gt;If I write my code to the 52840 I am then not able to access the 9160, eg:&lt;br /&gt;&lt;br /&gt;5280 = empty&lt;br /&gt;9160 = able see and access&lt;br /&gt;&lt;br /&gt;52840 = load my code&lt;br /&gt;9160 = not able to access&lt;/p&gt;
&lt;p&gt;52840 = erase my code&lt;br /&gt;9160 = able to see and access&lt;/p&gt;
&lt;p&gt;9160 = load my code&lt;br /&gt;52840 = load my code&lt;br /&gt;&lt;br /&gt;As long at the 52840, doenst have any code on it - I was able to access it.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/339584?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 09:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cefc7b4c-5b65-4e0a-929a-b224c9a87199</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hey Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;More details, this is leading up to current state of not working:&lt;br /&gt;&lt;br /&gt;The thingy was working fine before I started all this, as I tested with the default tracking app &lt;/p&gt;
&lt;p&gt;I uploaded my own code onto the 9160 via the USB with MCU Boot, and it seemed to work fine however I was unable to load my 52840 code, hence the reason for going through jlink on the 9160dk, of which that is all working but.&lt;br /&gt;&lt;br /&gt;So before I bricked the thingy 91 (9160) it was all working.&lt;/p&gt;
&lt;p&gt;When I did the mcu-boot, it originally didnt work due to the memory layout or something, so I followed one of the online guides to get the resolved:&lt;/p&gt;
&lt;p&gt;essentially:&lt;/p&gt;
&lt;p&gt;CMakeLists.txt&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:12px;font-weight:normal;line-height:18px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;list&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;(APPEND mcuboot_OVERLAY_CONFIG&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot_overlay-thingy91.conf&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt; )&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;mcuboot_overlay-thingy91.conf&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Menlo, Monaco, &amp;#39;Courier New&amp;#39;, monospace;font-size:12px;font-weight:normal;line-height:18px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#9cdcfe;"&gt;CONFIG_BOOT_SIGNATURE_TYPE_RSA&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#9cdcfe;"&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;root-rsa-2048.pem&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Not sure it that had something to do with it ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I managed to get access to another thingy 91 to ensure it was not my cables or machine and can see the 9160 and 52840 - so I know all my connections etc... are good, and it appears to be the 9160 ?&lt;br /&gt;&lt;br /&gt;Therefore, back to the current issue, if I have bricked it, how do I un-brick it - or if its dead hardware, how do I confirm this ?&lt;/p&gt;
&lt;p&gt;cheers&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/339581?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 09:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f807774d-5a0c-4933-8292-8593b92df197</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;br /&gt;&lt;br /&gt;I have installed 6.88.a&lt;br /&gt;&lt;br /&gt;nrfjprog --version&lt;br /&gt;nrfjprog version: 10.12.2&lt;br /&gt;JLinkARM.dll version: 6.88a&lt;br /&gt;&lt;br /&gt;I am also running 3.7.1 as per your details above.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;I can still see the 52840 fine, so know its all connected, but same issue with the 9160:&lt;/p&gt;
&lt;p&gt;Error:&lt;br /&gt;2021-11-18T05:45:10.886Z INFO Application data folder: /Users/bdunstan/Library/Application Support/nrfconnect/pc-nrfconnect-programmer&lt;br /&gt;2021-11-18T05:45:10.978Z INFO Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6&lt;br /&gt;2021-11-18T05:45:11.022Z DEBUG App pc-nrfconnect-programmer v1.4.11 official&lt;br /&gt;2021-11-18T05:45:11.022Z DEBUG App path: /Users/bdunstan/.nrfconnect-apps/external/3.7 compatible apps/node_modules/pc-nrfconnect-programmer&lt;br /&gt;2021-11-18T05:45:11.022Z DEBUG nRFConnect 3.7.1, required by the app is (^3.6.0)&lt;br /&gt;2021-11-18T05:45:11.022Z DEBUG nRFConnect path: /Applications/nRF Connect.app/Contents/Resources/app.asar&lt;br /&gt;2021-11-18T05:45:11.022Z DEBUG HomeDir: /Users/bdunstan&lt;br /&gt;2021-11-18T05:45:11.022Z DEBUG TmpDir: /var/folders/2c/gmmw_pdn0yd3v6wc1vj0d2mm0000gn/T/&lt;br /&gt;2021-11-18T05:45:11.899Z VERBOSE Could not fetch serial number for serial port at /dev/tty.Bluetooth-Incoming-Port&lt;br /&gt;2021-11-18T05:45:11.899Z VERBOSE Could not fetch serial number for serial port at /dev/tty.BoseQuietComfort35-SPPD&lt;br /&gt;2021-11-18T05:45:11.899Z VERBOSE Could not fetch serial number for serial port at /dev/tty.BoseMicroSoundLink-SPPD&lt;br /&gt;2021-11-18T09:24:54.062Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-18T09:24:55.458Z INFO Using J-Link Software version 6.88&lt;br /&gt;2021-11-18T09:24:56.328Z INFO Segger serial:&amp;nbsp; 960048905&lt;br /&gt;2021-11-18T09:24:56.328Z INFO Segger speed:&amp;nbsp; 2000&amp;nbsp; kHz&lt;br /&gt;2021-11-18T09:24:56.328Z INFO Segger version:&amp;nbsp; J-Link OB-K22-NordicSemi compiled Apr 29 2021 15:10:52&lt;br /&gt;2021-11-18T09:24:56.329Z INFO Core probed: 960048905&lt;br /&gt;2021-11-18T09:24:56.329Z INFO Core RAM: 256KiB&lt;br /&gt;2021-11-18T09:24:56.329Z INFO Core ROM: 1024KiB in pages of 4KiB&lt;br /&gt;2021-11-18T09:24:56.450Z INFO Model: NRF52840_xxAA_REV2.&lt;br /&gt;2021-11-18T09:24:57.216Z INFO Core0: Reading device non-volatile memory. This may take a few seconds.&lt;br /&gt;2021-11-18T09:24:57.967Z INFO Core0: UICR has been read. Click read button to read full non-volatile memory.&lt;br /&gt;2021-11-18T09:25:11.347Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-18T09:25:11.955Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&lt;br /&gt;Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)&lt;/p&gt;
&lt;p&gt;I have also connected it to a j-link edu mini, I can see the 52840 - but unable to see the 9160:&lt;br /&gt;&lt;br /&gt;Error:&lt;br /&gt;2021-11-18T09:31:14.124Z INFO Application data folder: /Users/bdunstan/Library/Application Support/nrfconnect/pc-nrfconnect-programmer&lt;br /&gt;2021-11-18T09:31:14.196Z INFO Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6&lt;br /&gt;2021-11-18T09:31:14.254Z DEBUG App pc-nrfconnect-programmer v1.4.11 official&lt;br /&gt;2021-11-18T09:31:14.254Z DEBUG App path: /Users/bdunstan/.nrfconnect-apps/external/3.7 compatible apps/node_modules/pc-nrfconnect-programmer&lt;br /&gt;2021-11-18T09:31:14.254Z DEBUG nRFConnect 3.7.1, required by the app is (^3.6.0)&lt;br /&gt;2021-11-18T09:31:14.255Z DEBUG nRFConnect path: /Applications/nRF Connect.app/Contents/Resources/app.asar&lt;br /&gt;2021-11-18T09:31:14.255Z DEBUG HomeDir: /Users/bdunstan&lt;br /&gt;2021-11-18T09:31:14.255Z DEBUG TmpDir: /var/folders/2c/gmmw_pdn0yd3v6wc1vj0d2mm0000gn/T/&lt;br /&gt;2021-11-18T09:31:15.132Z VERBOSE Could not fetch serial number for serial port at /dev/tty.Bluetooth-Incoming-Port&lt;br /&gt;2021-11-18T09:31:15.132Z VERBOSE Could not fetch serial number for serial port at /dev/tty.BoseQuietComfort35-SPPD&lt;br /&gt;2021-11-18T09:31:15.132Z VERBOSE Could not fetch serial number for serial port at /dev/tty.BoseMicroSoundLink-SPPD&lt;br /&gt;2021-11-18T09:31:29.251Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-18T09:31:29.654Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&lt;br /&gt;Lowlevel error: LOW_VOLTAGE (fffffff4)&lt;br /&gt;&lt;br /&gt;2021-11-18T09:31:38.214Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-18T09:31:39.001Z INFO Using J-Link Software version 6.88&lt;br /&gt;2021-11-18T09:31:39.734Z INFO Segger serial:&amp;nbsp; 801036805&lt;br /&gt;2021-11-18T09:31:39.734Z INFO Segger speed:&amp;nbsp; 2000&amp;nbsp; kHz&lt;br /&gt;2021-11-18T09:31:39.735Z INFO Segger version:&amp;nbsp; J-Link EDU Mini V1 compiled Feb 18 2021 11:25:23&lt;br /&gt;2021-11-18T09:31:39.738Z INFO Core probed: 801036805&lt;br /&gt;2021-11-18T09:31:39.738Z INFO Core RAM: 256KiB&lt;br /&gt;2021-11-18T09:31:39.738Z INFO Core ROM: 1024KiB in pages of 4KiB&lt;br /&gt;2021-11-18T09:31:39.871Z INFO Model: NRF52840_xxAA_REV2.&lt;br /&gt;2021-11-18T09:31:40.611Z INFO Core0: Reading device non-volatile memory. This may take a few seconds.&lt;br /&gt;2021-11-18T09:31:50.357Z INFO Core0: Non-volatile memory has been read. 4 non-empty memory blocks identified &lt;br /&gt;2021-11-18T09:31:50.479Z INFO SoftDevice detected, id 0xCE (S340 v7.0.1)&lt;br /&gt;2021-11-18T09:32:02.244Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-18T09:32:02.762Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&lt;br /&gt;Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)&lt;br /&gt;&lt;br /&gt;2021-11-18T09:33:21.963Z INFO Target device closed.&lt;br /&gt;2021-11-18T09:33:26.730Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-18T09:33:27.222Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&lt;br /&gt;Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there something fundamental I am missing ?&lt;br /&gt;&lt;br /&gt;I assume with the j-link or 9160DK, I dont need to press any other buttons on the thingy91 to get it to work, reset or ??&lt;br /&gt;&lt;br /&gt;Is there an option to do a full/hardware reset ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;-brett&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/339146?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 08:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ad4be3a-c1fc-42e5-badd-deb9e094c346</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It may seem like an issue with nrf connect v3.8/3.9 and/or jlink at the moment, from the log I can see it is not able to switch from the nRF52840&amp;nbsp; to nRF9160. Can you try to install&amp;nbsp;&lt;span&gt;JLink til v6.88a from&lt;/span&gt;&amp;nbsp;&lt;a href="https://www.segger.com/downloads/jlink"&gt;https://www.segger.com/downloads/jlink&lt;/a&gt;&amp;nbsp;(uninstall possible newer version first) and try again?&lt;/p&gt;
&lt;p&gt;If still is no luck, then you may need to downgrade to nrf connect v3.7 and install apps that is compatible with that release.:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the latest 3.7 version of nRF Connect for Desktop from&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="https://www.nordicsemi.com/products/development-tools/nrf-connect-for-desktop/download?lang=en#infotabs" href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop/Download?lang=en#infotabs" rel="noopener noreferrer" target="_blank"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop/Download?lang=en#infotabs&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(for macOS this is 3.7.2, for Windows and Linux 3.7.1).&lt;/li&gt;
&lt;li&gt;After starting nRF Connect for Desktop 3.7 a prompt will come up about the 3.8 upgrade. Click “No” on this.&lt;/li&gt;
&lt;li&gt;In the Settings, click on “Add source”, enter the URL&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="http://developer.nordicsemi.com/.pc-tools/nrfconnect-apps/3.7-apps/apps.json" href="http://developer.nordicsemi.com/.pc-tools/nrfconnect-apps/3.7-apps/apps.json" rel="noopener noreferrer" target="_blank"&gt;http://developer.nordicsemi.com/.pc-tools/nrfconnect-apps/3.7-apps/apps.json&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and click “Add”.&lt;/li&gt;
&lt;li&gt;Back in the list of all apps, all apps should show up twice now, one with “official” below them and one with “3.7 compatible apps” below them. If you want to hide the incompatible versions, click on “Filter” and deselect “Official”.&lt;/li&gt;
&lt;li&gt;Install the apps you need in the old versions and use them.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/338656?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 20:04:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b5b2f05-2800-4e45-bf38-24b769dfc84a</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;I also tried the original way of flashing the 9160 (on the thingy), via the USB and MCUBoot method, but I cant even get the USB to work.&lt;br /&gt;&lt;br /&gt;* Connect USB&lt;br /&gt;* Hold down SW3 whilst turning on the thingy&lt;br /&gt;* I dont see the device in the pulldown of the programmer, and I dont see any usb devices in /dev (I am on a mac)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/338654?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 19:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc6011c-adaa-4ff0-9c3d-1d7e6110f20c</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the slow response, I was waiting for a cable to arrive to test this process...&lt;/p&gt;
&lt;p&gt;I was able to flash the 52840 with out a problem, however, when I tried to flash the 9160 I get the following error on the programmer:&lt;/p&gt;
&lt;p&gt;2021-11-11T19:34:37.975Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-11T19:34:39.005Z INFO Using J-Link Software version 6.88&lt;br /&gt;2021-11-11T19:34:39.794Z INFO Segger serial:&amp;nbsp; 960048905&lt;br /&gt;2021-11-11T19:34:39.794Z INFO Segger speed:&amp;nbsp; 2000&amp;nbsp; kHz&lt;br /&gt;2021-11-11T19:34:39.794Z INFO Segger version:&amp;nbsp; J-Link OB-K22-NordicSemi compiled Apr 29 2021 15:10:52&lt;br /&gt;2021-11-11T19:34:39.797Z INFO Core probed: 960048905&lt;br /&gt;2021-11-11T19:34:39.797Z INFO Core RAM: 256KiB&lt;br /&gt;2021-11-11T19:34:39.797Z INFO Core ROM: 1024KiB in pages of 4KiB&lt;br /&gt;2021-11-11T19:34:39.916Z INFO Model: NRF52840_xxAA_REV2.&lt;br /&gt;2021-11-11T19:34:40.742Z INFO Core0: Reading device non-volatile memory. This may take a few seconds.&lt;br /&gt;2021-11-11T19:34:41.520Z INFO Core0: UICR has been read. Click read button to read full non-volatile memory.&lt;br /&gt;2021-11-11T19:34:51.571Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-11T19:34:52.350Z INFO Using J-Link Software version 6.88&lt;br /&gt;2021-11-11T19:34:53.102Z INFO Segger serial:&amp;nbsp; 960048905&lt;br /&gt;2021-11-11T19:34:53.103Z INFO Segger speed:&amp;nbsp; 2000&amp;nbsp; kHz&lt;br /&gt;2021-11-11T19:34:53.103Z INFO Segger version:&amp;nbsp; J-Link OB-K22-NordicSemi compiled Apr 29 2021 15:10:52&lt;br /&gt;2021-11-11T19:34:53.103Z INFO Core probed: 960048905&lt;br /&gt;2021-11-11T19:34:53.103Z INFO Core RAM: 256KiB&lt;br /&gt;2021-11-11T19:34:53.103Z INFO Core ROM: 1024KiB in pages of 4KiB&lt;br /&gt;2021-11-11T19:34:53.230Z INFO Model: NRF52840_xxAA_REV2.&lt;br /&gt;2021-11-11T19:34:54.013Z INFO Core0: Reading device non-volatile memory. This may take a few seconds.&lt;br /&gt;2021-11-11T19:35:03.590Z INFO Core0: Non-volatile memory has been read. 4 non-empty memory blocks identified &lt;br /&gt;2021-11-11T19:35:03.710Z INFO SoftDevice detected, id 0xCE (S340 v7.0.1)&lt;br /&gt;2021-11-11T19:36:02.413Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-11T19:36:02.991Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&lt;br /&gt;Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)&lt;br /&gt;&lt;br /&gt;2021-11-11T19:36:45.354Z INFO Target device closed.&lt;br /&gt;2021-11-11T19:36:50.987Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-11-11T19:36:51.549Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&lt;br /&gt;Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I try from the CLI, I get:&lt;br /&gt;nrfjprog --eraseall&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;/p&gt;
&lt;p&gt;I have tried&lt;/p&gt;
&lt;p&gt;* restarting all boards but it still doesnt seem to be able to see or write to the 9160,&lt;/p&gt;
&lt;p&gt;* confirmed SW2 set to nrf91 (on the thingy91)&lt;br /&gt;&lt;br /&gt;* tried the Prog/DEBUG switch on the 9160 to nrf52 and nrf91&lt;br /&gt;&lt;br /&gt;Since I was able to update the 52840 on the thingy, I assume the cable and connection is all good, but any other thoughts ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;cheers&lt;br /&gt;-brett&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91: Process to flash s340 and 52840</title><link>https://devzone.nordicsemi.com/thread/337088?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 12:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e935e4f0-8cea-4207-a946-14c2715e6b25</guid><dc:creator>Kenneth</dc:creator><description>[quote user=""]* For the 52840, do I need to use an external connection - say the 9160dk to be able to flash it ?[/quote]
&lt;p&gt;Yes, then you have full control over the firmware you program (and not limited to DFU over a serial interface that may not allow update of for instance softdevice out of the box), so please follow this setup:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_thingy91_gsg/UG/thingy91_gsg/updating_fw_ext_probe.html"&gt;https://infocenter.nordicsemi.com/topic/ug_thingy91_gsg/UG/thingy91_gsg/updating_fw_ext_probe.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It should be possible to use an j-link programmer or nRF DK to program the nRF52840 on the thingy91. Then you can also program using nrfjprog.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>