<?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>Unable to flash Arduino Nano 33 BLE Rev2 with bossac runner in Zephyr (Flash erase failed)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124079/unable-to-flash-arduino-nano-33-ble-rev2-with-bossac-runner-in-zephyr-flash-erase-failed</link><description>Hi all, 
 I’m running into issues flashing an Arduino Nano 33 BLE Rev2 (nRF52840) using Zephyr and the bossac runner. I consistently hit a “Flash erase failed” error and can’t get past it. Please note that I&amp;#39;ve used ChatGPT to help me format this post</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Sep 2025 05:15:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124079/unable-to-flash-arduino-nano-33-ble-rev2-with-bossac-runner-in-zephyr-flash-erase-failed" /><item><title>RE: Unable to flash Arduino Nano 33 BLE Rev2 with bossac runner in Zephyr (Flash erase failed)</title><link>https://devzone.nordicsemi.com/thread/547561?ContentTypeID=1</link><pubDate>Wed, 03 Sep 2025 05:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f35fc441-91e9-438f-bd89-10b1fdf3d0e0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It sounds like it’s just a matter of finding the bossac arguments used by the Arduino IDE then. Have you tried adding the -a argument mentioned in this blog post:&amp;nbsp;&lt;a href="https://shanesnover.com/2023/12/18/zephyr-flash-nano-33-ble.html"&gt;https://shanesnover.com/2023/12/18/zephyr-flash-nano-33-ble.html&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;Please note that our SDK documentation includes a copy of the official Zephyr Project documentation, which means it is not limited to Nordic products.&lt;/p&gt;
[quote user="ltrush"]If possible, I would love to make my project work this way, but if that fails I do have a nrf52480 dongle.[/quote]
&lt;p&gt;Both the dongle and this board support this BLE role, but&amp;nbsp;the nRF52840 dongle is generally not recommended for development. It&amp;nbsp;was not&amp;nbsp;designed for that purpose (You need to connect an external&amp;nbsp;J-link&amp;nbsp;probe and solder a connector to the SWD lines to&amp;nbsp;get debug access.). Our development kits (e.g. nRF52840 DK) comes with an on-board Jlink debugger and are better suited for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash Arduino Nano 33 BLE Rev2 with bossac runner in Zephyr (Flash erase failed)</title><link>https://devzone.nordicsemi.com/thread/547540?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 20:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91151ae7-b209-4ac8-9348-f6dffffe9f78</guid><dc:creator>ltrush</dc:creator><description>&lt;p&gt;I get the same results when I try to run bossac directly (without west) through CLI.&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;PS C:\ncs\v3.1.0\zephyr\samples\basic\blinky&amp;gt; C:\Users\...\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.9.1-arduino2\bossac.exe -p COM4 -R -w -v -b C:\ncs\v3.1.0\zephyr\samples\basic\blinky\build\blinky\zephyr\zephyr.bin &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Write 21856 bytes to flash (6 pages)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;[ ] 0% (0/6 pages)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Flash erase failed&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The Arduino IDE (which I believe uses BOSSAC to flash devices) Is perfectly capable of flashing my Arduino Nano 33 BLE. But it seems I&amp;#39;m unable to through west. I am following the steps laid out in this Nordic doc:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/boards/arduino/nano_33_ble/doc/index.html"&gt;docs.nordicsemi.com/.../index.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash Arduino Nano 33 BLE Rev2 with bossac runner in Zephyr (Flash erase failed)</title><link>https://devzone.nordicsemi.com/thread/547539?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 20:17:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e0876f-0f45-429f-9239-977136b3aaca</guid><dc:creator>ltrush</dc:creator><description>&lt;p&gt;I am just following the steps outlined by this official Nordic doc:&amp;nbsp;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/boards/arduino/nano_33_ble/doc/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/boards/arduino/nano_33_ble/doc/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If possible, I would love to make my project work this way, but if that fails I do have a nrf52480 dongle. My goal is to have two Arduino Nano 33 BLEs simultaneously read data over BLE from a &amp;quot;central device&amp;quot;. I just don&amp;#39;t know if the dongle is capable of being that device.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash Arduino Nano 33 BLE Rev2 with bossac runner in Zephyr (Flash erase failed)</title><link>https://devzone.nordicsemi.com/thread/547445?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 10:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b63c0d26-64d9-4163-9795-a2d989c4d373</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Luke,&lt;/p&gt;
&lt;p&gt;I don&amp;rsquo;t have experience with programming through the Arduino bootloader, so it&amp;rsquo;s a bit hard for me to say what might be causing the flash erase failure. Are you able to flash the firmware by running bossac.exe directly from the command line or through another programming app or does that also fail?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: you can run &amp;#39;west&amp;nbsp;&lt;strong&gt;-vvvv&lt;/strong&gt; flash&amp;#39; to get a verbose output from the west runner. It will show&amp;nbsp;all the arguments that is passed to the&amp;nbsp;&lt;span&gt;bossac executable.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash Arduino Nano 33 BLE Rev2 with bossac runner in Zephyr (Flash erase failed)</title><link>https://devzone.nordicsemi.com/thread/547397?ContentTypeID=1</link><pubDate>Tue, 02 Sep 2025 06:21:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8dfeb4-ecdf-487d-a7c2-2c2ab8a3915e</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;That 3rd party software is not supported here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you wanted to do serious development, get a nordic DK board and use the included JLink debugger over the SWD connection. That way&amp;nbsp;&lt;em&gt;would&lt;/em&gt; be supported here.&lt;/p&gt;
&lt;p&gt;Pretty sure you can&amp;#39;t use zephyr samples unmodified with a bootloader present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>