<?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>**JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9189/jlink-warning-cpu-could-not-be-halted</link><description>I am using SDK9.0,
J-Link Lite-Cortex-M, HW: V8.00, DLL: V4.98C 
 But getting this error just in this project when debugging:
 debug.txt 
 It was working with this project. not sure if this is caused by new SDK upgrade from 8 to 9 or I did anything</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Oct 2015 15:46:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9189/jlink-warning-cpu-could-not-be-halted" /><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33894?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 15:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd618202-5336-4020-8ab2-3a96e9d89118</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi Hung, I found the problem: a hardware bug. I feel bad that it was just wasting your valuable time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33893?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 15:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96d8894-db8a-4aa9-b431-eb848b739063</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;From your description, it worked with the example ?
If it only happens on your application, you may want to send us the project so we can test here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33895?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 15:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d36c168-dad8-4fa5-8c2d-c6bb9b92facd</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Sorry, found that problem. It was a hardware bug: This is a battery backed up system. I used to debug with battery in the circuit, so no problem. Then I took the battery away without thinking it will cause any issues. But today I found out without battery in the system, a DC/DC circuit controlled by software is generating enough noise to reset the CPU when software is trying to turn it on. Battery was a big capacitor to absorb the &amp;quot;kick&amp;quot;.&lt;/p&gt;
&lt;p&gt;Anyway, good new. It solved debug problem, and more importantly exposed a hardware issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33892?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 15:03:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3045662-0fdc-41f0-901f-a6a82991e873</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Screen shot for ble_app_hrs_s110 is attached in the original post&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33891?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 11:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dd8e041-4f48-4a54-820a-ab6e17f4c3ad</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;Could you try with one of our example, the ble_app_hrs for example. And take a screenshot when you trying to debug ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33890?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 22:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c88847c-54fd-430a-927c-0a2434ad63b3</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Recreated the project, still the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33889?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 20:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f593a61-6ea6-42eb-b771-5f4725a7de80</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I tried new firmware but same result. Yes, other projects are working with SDKV9 on my computer. I am going to create a new project to try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33888?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 20:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b74bfe79-f46a-4729-8379-652319495834</guid><dc:creator>Paul</dc:creator><description>&lt;h2&gt;JLink info:&lt;/h2&gt;
&lt;p&gt;DLL: V5.02f, compiled Oct  2 2015 20:51:34
Firmware: J-Link Lite-Cortex-M V8 compiled Aug 20 2015 17:57:19
Hardware: V8.00
S/N : 538001129
Feature(s) : GDB&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33887?ContentTypeID=1</link><pubDate>Tue, 15 Sep 2015 07:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d65ae73b-2c42-41ea-9b1c-f235da6e0055</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Paul: How did you do the upgrade ? Do you have the same problem when testing with the SDK v9 examples ? Could you try to upgrade the Jlink driver to v5.0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33886?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 15:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf32c07-b478-4c5e-84a9-ca7ede9f749f</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;It is KEIL, and Level 0 (-O0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: **JLink Warning: CPU could not be halted</title><link>https://devzone.nordicsemi.com/thread/33885?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2015 09:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02010bc6-26df-43d6-837e-3ab522cab099</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;Could you let me know which debugger are you using? Was it KEIL or GDB  ?&lt;/p&gt;
&lt;p&gt;Have you made sure you changed the optimization level to 0 instead of 3 as in default configuration in C/C++ tab in project setting? Optimization compiling compresses the code and won&amp;#39;t allow the debugger to halt the CPU correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>