<?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>Nuttx flash configuration - nrf52840dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83506/nuttx-flash-configuration---nrf52840dk</link><description>I recently got the nrf52840dk board and I am trying to use it with the Nuttx embedded OS. However, I am having some issues flashing the nuttx binary on my board. 
 this is the instruction on the nuttx page: 
 openocd -f interface/stlink-v2.cfg -f target</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jan 2022 09:24:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83506/nuttx-flash-configuration---nrf52840dk" /><item><title>RE: Nuttx flash configuration - nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/347320?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 09:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a559a77-d66d-4c46-bf95-5f1a25e615ad</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We do not use STLink or openocd for debugging, almost everyone here in Nordic use JLink and I tested this which seems to work.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;sunu@SUNU-7080 C:\Users\sunu\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\sunu\nuttxspace\nuttx
$ &amp;quot;C:\Program Files (x86)\SEGGER\JLink\JLink.exe&amp;quot;
SEGGER J-Link Commander V7.52d (Compiled Aug 17 2021 17:11:43)
DLL version V7.52d, compiled Aug 17 2021 17:10:23

Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Feb  2 2021 16:47:20
Hardware version: V1.00
S/N: 683103831
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
VTref=3.300V


Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help
J-Link&amp;gt;loadbin
Target connection not established yet but required for command.
Please specify device / core. &amp;lt;Default&amp;gt;: NRF52840_XXAA
Type &amp;#39;?&amp;#39; for selection dialog
Device&amp;gt;?
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF&amp;gt;S
Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz
Speed&amp;gt;
Device &amp;quot;NRF52840_XXAA&amp;quot; selected.


Connecting to target via SWD
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
DPIDR: 0x2BA01477
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
Cortex-M4 identified.
Syntax: loadbin &amp;lt;filename&amp;gt;, &amp;lt;addr&amp;gt;
J-Link&amp;gt;loadbin
Syntax: loadbin &amp;lt;filename&amp;gt;, &amp;lt;addr&amp;gt;
J-Link&amp;gt;loadbin nuttx.bin,0
Halting CPU for downloading file.
Downloading file [nuttx.bin]...
J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (77824 bytes)
J-Link: Flash download: Total: 3.089s (Prepare: 0.138s, Compare: 0.022s, Erase: 1.577s, Program &amp;amp; Verify: 1.268s, Restore: 0.083s)
J-Link: Flash download: Program &amp;amp; Verify speed: 60 KiB/s
O.K.
J-Link&amp;gt;exit&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I would request you to take this to the Nuttx forum , as we have not played around with this and not many here are confident in the underlying details of this subject. Sorry for that and hope you get better response in those forums..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nuttx flash configuration - nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/346954?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 13:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abfd10ff-1012-4ef9-a465-b2a4dca344e3</guid><dc:creator>mrgenie</dc:creator><description>&lt;p&gt;Thanks for the feedback. I am using openocd to flash the nrf52840dk board. I have tried 2 instances but facing some issues. Here are the error messages. I tried with jlink and stlink.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I use jlink,&lt;/p&gt;
&lt;p&gt;openocd -f interface/jlink.cfg -f target/nrf52.cfg -c &amp;#39;init&amp;#39; -c &amp;#39;program nuttx/nuttx.bin verify reset&amp;#39; -c &amp;#39;shutdown&amp;#39;&lt;br /&gt;Open On-Chip Debugger 0.11.0+dev-00551-gaad871805 (2022-01-10-14:22)&lt;br /&gt;Licensed under GNU GPL v2&lt;br /&gt;For bug reports, read&lt;br /&gt; &lt;a href="http://openocd.org/doc/doxygen/bugs.html"&gt;openocd.org/.../bugs.html&lt;/a&gt;&lt;br /&gt;Info : auto-selecting first available session transport &amp;quot;jtag&amp;quot;. To override use &amp;#39;transport select &amp;lt;transport&amp;gt;&amp;#39;.&lt;br /&gt;/usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl:28: Error: newtap: nrf52.cpu missing IR length&lt;br /&gt;in procedure &amp;#39;script&amp;#39; &lt;br /&gt;at file &amp;quot;embedded:startup.tcl&amp;quot;, line 26&lt;br /&gt;in procedure &amp;#39;swj_newdap&amp;#39; called at file &amp;quot;/usr/local/bin/../share/openocd/scripts/target/nrf52.cfg&amp;quot;, line 27&lt;br /&gt;at file &amp;quot;/usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl&amp;quot;, line 28&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I use stlink,&lt;/p&gt;
&lt;p&gt;openocd -f interface/stlink.cfg -f target/nrf52.cfg -c &amp;#39;init&amp;#39; -c &amp;#39;program nuttx/nuttx.bin verify&amp;#39; -c &amp;#39;shutdown&amp;#39;&lt;br /&gt;Open On-Chip Debugger 0.11.0+dev-00551-gaad871805 (2022-01-10-14:22)&lt;br /&gt;Licensed under GNU GPL v2&lt;br /&gt;For bug reports, read&lt;br /&gt; &lt;a href="http://openocd.org/doc/doxygen/bugs.html"&gt;openocd.org/.../bugs.html&lt;/a&gt;&lt;br /&gt;Info : auto-selecting first available session transport &amp;quot;hla_swd&amp;quot;. To override use &amp;#39;transport select &amp;lt;transport&amp;gt;&amp;#39;.&lt;br /&gt;Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD&lt;/p&gt;
&lt;p&gt;nRF52 device has a CTRL-AP dedicated to recover the device from AP lock.&lt;br /&gt;A high level adapter (like a ST-Link) you are currently using cannot access&lt;br /&gt;the CTRL-AP so &amp;#39;nrf52_recover&amp;#39; command will not work.&lt;br /&gt;Do not enable UICR APPROTECT.&lt;/p&gt;
&lt;p&gt;Info : clock speed 1000 kHz&lt;br /&gt;Error: open failed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you provide some assistance on how to resolve these?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nuttx flash configuration - nrf52840dk</title><link>https://devzone.nordicsemi.com/thread/346945?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 12:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:800d6b8a-02dd-4418-af16-29b7dfb9cf01</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Nordic does not officially support Nuttx OS. It seems like the support of nRF52832 only through ssparkfun&amp;#39;s STLink debugger interface. Please take this question to the Nuttx support page to get more help on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>