<?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>How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22985/how-to-active-debug-feature-for-sdk13-nrf52840-on-iar</link><description>Hi. 
 I am using saadc sample cod of SDK13. Changing some parameters based on the analog input, the example is sucking somewhere where I have not been able to find it. 
 Searching for a solution, I wanted to use DEBUG or log future of the sample code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jun 2017 11:21:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22985/how-to-active-debug-feature-for-sdk13-nrf52840-on-iar" /><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90435?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 11:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcd5e755-df21-4c7a-aa4e-ba8176afa075</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Just run the installer. Power the board on/off, and open e.g. nRFGo Studio, you should get an automatic pop-up like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/update.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90428?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 11:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb48094a-43cc-4c83-8aeb-bcdf665c13c1</guid><dc:creator>Leila</dc:creator><description>&lt;p&gt;Thanks for all great help.&lt;/p&gt;
&lt;p&gt;Is there any tutorial about how to update the version of on-board segger jlink on nRF52840-PDK by using Command Line Tools on windows?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90430?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 10:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c587a2-5e02-4b44-b111-8c99d873323d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Support for nRF52840/PCA10056 was first added in J-Link V6.12c. Download link &lt;a href="https://www.segger.com/downloads/jlink"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Download the &lt;code&gt;J-Link Software and Documentation Pack&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You should also use the the latest nRF5x-Command-Line-Tools.  Download link &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF52840/nRF5x-Command-Line-Tools-Win32/58850"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90429?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 10:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1e652a3-d397-48cd-965e-76ff6df82494</guid><dc:creator>Leila</dc:creator><description>&lt;p&gt;It seems that the code does not reach that line and stick somewhere before.&lt;/p&gt;
&lt;p&gt;I think I found the problem. I am using on-board J-Link which its software does not support NRF52840_XXAA and it selected ARM7 by mistake.
Not sure if I select NRF52832_XXAA would work efficiently or I should update the version of the J-Link software. It is V5.12f on my nRF52840-PDK. Could you let me know which one would be helpful?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90422?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 10:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b256159-271e-436c-af22-08f0e4a09aa6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Why are you getting &amp;quot;APP:INFO:Blinky example started.&amp;quot; from the terminal, when you are printing &amp;quot;SAADC HAL simple example&amp;quot; ? Looks like you have not flashed the SAADC code, and that the Blinky example code on the chip.&lt;/p&gt;
&lt;p&gt;Could you open nRFGo studio or use nrfjprog, and do an &amp;quot;erase all&amp;quot; , and then flash the code to the chip ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90427?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 09:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16ae675a-2424-464f-a5ab-d3aeec361e1e</guid><dc:creator>Leila</dc:creator><description>&lt;p&gt;trying Step Into, IAR ignores it and the code sticks. So I can not follow code. It seems that the example does not go to the end.&lt;/p&gt;
&lt;p&gt;I have chosen nRF52840 as my device but in debug log is showing ARM7.&lt;/p&gt;
&lt;p&gt;It seems I missed something in IAR settings. Could you please help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90426?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 09:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6bdf81c-134e-4ed3-9dfa-e356c7670c3a</guid><dc:creator>Leila</dc:creator><description>&lt;p&gt;Sorry for not using the forum efficiently. It seems I am not posting in a right way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90425?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 09:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a52e378-d1eb-4cc4-a8c3-0a362f95d241</guid><dc:creator>Leila</dc:creator><description>&lt;p&gt;I am using the exact sample code of SDK13-&amp;gt; peripheral -&amp;gt; saadc.
Some part of it:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;enter code here
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;int main(void)
{
uint32_t err_code = NRF_LOG_INIT(NULL);
APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = nrf_drv_power_init(NULL);
APP_ERROR_CHECK(err_code);

ret_code_t ret_code = nrf_pwr_mgmt_init();
APP_ERROR_CHECK(ret_code);

NRF_LOG_INFO(&amp;quot;SAADC HAL simple example.\r\n&amp;quot;);
saadc_init();
saadc_sampling_event_init();
saadc_sampling_event_enable();

while (1)
{
    nrf_pwr_mgmt_run();
    NRF_LOG_FLUSH();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90424?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 09:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67977ad3-7a01-4070-8da1-54a78385cd94</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could you post the code you use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90423?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 09:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a9d868-9547-472b-aee1-30280f83f068</guid><dc:creator>Leila</dc:creator><description>&lt;p&gt;I just get this outputs:
&amp;quot;APP:INFO:Blinky example started.&amp;quot;
and
&amp;quot;:ERROR:Fatal&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90433?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 08:59:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae641419-79b2-4bca-9df8-004918922f1c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok, are you getting any output from the terminal?
Normally you should get something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;APP:INFO:ADC event number: 12
APP:INFO:21
APP:INFO:20
APP:INFO:22
APP:INFO:22
APP:INFO:24
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90432?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 08:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad37f2ca-cbd2-407e-8f99-082f4051240a</guid><dc:creator>Leila</dc:creator><description>&lt;p&gt;like the resolution, gain and so on for the saadc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90431?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 08:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32845089-b331-4699-b270-cb4b923fdfbb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What modifications did you make?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to active DEBUG feature for SDK13, nRF52840 on IAR?</title><link>https://devzone.nordicsemi.com/thread/90434?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 08:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1919c6ef-9f64-4aa3-a9fd-ea31b0542943</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Make sure that you generating debug information. See &lt;a href="https://devzone.nordicsemi.com/question/121596/nrf52dk-breakpoints-in-iar-embedded-workbench/"&gt;this post&lt;/a&gt;.
Then in the &amp;quot;Optimizations&amp;quot; tab, set the optimization to &lt;code&gt;None&lt;/code&gt;.
In the Preprocessor tab, add the symbol &lt;code&gt;DEBUG&lt;/code&gt; under &amp;quot;Defined symbols&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>