<?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 code on nRF1822 chip using STLInk debugger by keil IDE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16138/unable-to-flash-code-on-nrf1822-chip-using-stlink-debugger-by-keil-ide</link><description>hi i am working on nRF51822 chip, trying to flash code using keil IDE through STLink debugger. which i have attached image . while flashing the code it is showing Flash is finished on the keil console and also STLink LED is blinking during flash.
but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Sep 2016 09:18:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16138/unable-to-flash-code-on-nrf1822-chip-using-stlink-debugger-by-keil-ide" /><item><title>RE: Unable to flash code on nRF1822 chip using STLInk debugger by keil IDE</title><link>https://devzone.nordicsemi.com/thread/61556?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2016 09:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4135e83a-b97d-40a9-8026-1211de6ccbdb</guid><dc:creator>Pawelrutka</dc:creator><description>&lt;p&gt;OpenOCD &amp;amp; StLink works great with this devel kit you have. When developing on Nrf51822 I found arm gcc and eclipse toolset more convinient to use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash code on nRF1822 chip using STLInk debugger by keil IDE</title><link>https://devzone.nordicsemi.com/thread/61557?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2016 23:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aefd4519-fc48-4619-a303-838d8a063c20</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;The only time I have seen this sort of thing happen, is when the programmer does not correctly identify the nRF51822 device and just treats it as Cortex-M0&lt;/p&gt;
&lt;p&gt;When this happens, the generic erase command for Cortex-M0 does not seem to erase the flash&lt;/p&gt;
&lt;p&gt;I had the same issue when developing nRF51822 specific target code for the BlackMagic probe&lt;/p&gt;
&lt;p&gt;In this case the BlackMagic probe looks at the hardware ID of the nRF51822 but could not determine the device type and hence used Cortex-M0 as its target device.&lt;/p&gt;
&lt;p&gt;I had to add a load of extra ID codes to the BlackMagic sourcecode and reflash the programmer with those additional ID codes&lt;/p&gt;
&lt;p&gt;I think OpenOCD may support flashing of nRF51822 via STLInk and I know their ID codes are up to date, so you could try that&lt;/p&gt;
&lt;p&gt;Or if you have any STM32F103C boards kicking around you could flash the Blackmagic probe firmware onto one of them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>