<?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>Building a new project using ANT+</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72005/building-a-new-project-using-ant</link><description>Hi, 
 I&amp;#39;m trying to build a working example of an aplication that uses the ANT+ softdevice (either s210 or s212). I already found out that the PCA10028 and PCA10031 (my board) have the same chipset, so the examples for 28 should work for 31 assuming I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Mar 2021 09:51:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72005/building-a-new-project-using-ant" /><item><title>RE: Building a new project using ANT+</title><link>https://devzone.nordicsemi.com/thread/297716?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 09:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74c2c8ff-d45b-4599-823f-6e1dc52bfdd9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It&amp;nbsp;should work, however the nRF52840-DK also have a debug out that can be used to debug external boards.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a new project using ANT+</title><link>https://devzone.nordicsemi.com/thread/297626?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 20:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bcf09be-82da-465b-9ce9-4011ac250c25</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Just to make sure: J-link EDU Mini will work with NRF52 dongle? I guess it should :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a new project using ANT+</title><link>https://devzone.nordicsemi.com/thread/297405?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 09:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f175a290-c029-4a07-b686-f231a4bd1490</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I recommend to get an nRF52840-DK (which include a debugger), but&amp;nbsp;if you have an nRF52840 Dongle that you want to debug, then I recommend to get an j-link debugger:&lt;br /&gt;&lt;a href="https://www.segger.com/products/debug-probes/j-link/models/model-overview/"&gt;https://www.segger.com/products/debug-probes/j-link/models/model-overview/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a new project using ANT+</title><link>https://devzone.nordicsemi.com/thread/297328?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 23:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c5adcd-7ae1-44bd-a0a3-204f573dbfd6</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;I see thaet NRF52 dongle has no debugger. What debugger could be used together with it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a new project using ANT+</title><link>https://devzone.nordicsemi.com/thread/297214?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 13:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6570539b-e2c4-40f8-83ef-99dfead02d5e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The latest nRF5 SDK that support the nRF51422 and ANT+ example is nRF5 SDK v12.3:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/examples_ant.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/examples_ant.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is a getting started section on how to get started:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/nrf51_getting_started.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/nrf51_getting_started.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Running on a different board:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/sdk_for_custom_boards.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/sdk_for_custom_boards.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: After enabling the softdevice there are real-time requirements in the softdevice that prevent step by step debugging, since it will quickly assert due to timing is wrong. So you can only use logging after this point.&lt;/p&gt;
&lt;p&gt;For new development I strongly recommend to check out the nRF52-series instead, the latest nRF5 SDK then is v17.0.2.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a new project using ANT+</title><link>https://devzone.nordicsemi.com/thread/296196?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 10:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28142ed8-ff09-4cf2-b60b-84401cc37c46</guid><dc:creator>dragilla</dc:creator><description>&lt;p&gt;Addressing the part 1 - problems with the app from SDK10:&lt;/p&gt;
&lt;p&gt;1. I managed to find a way to load the code and run it on the device. You have to first load the soft device that is provided with the example selecting the target corresponding to it: flash_s20_nrf51422_5.0.0_softdevice and then build and load the application. It cannot be done the other way around, because loading the softdevice clear the whole memory. Also the softdevice cannot be loaded in another way, for example by loading it through NRF Connect Programmer. At least it didn&amp;#39;t work for me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. The UART doesn&amp;#39;t work for me. Tried&amp;nbsp;nrfjprog.exe --eraseall, but it doesn&amp;#39;t do anything. The UART is set up in the exmaple, in the&amp;nbsp;app_trace_init() function:&lt;/p&gt;
&lt;p&gt;void app_trace_init(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code = NRF_SUCCESS;&lt;br /&gt; const app_uart_comm_params_t comm_params = &lt;br /&gt; {&lt;br /&gt; RX_PIN_NUMBER, &lt;br /&gt; TX_PIN_NUMBER, &lt;br /&gt; RTS_PIN_NUMBER, &lt;br /&gt; CTS_PIN_NUMBER, &lt;br /&gt; APP_UART_FLOW_CONTROL_DISABLED, &lt;br /&gt; false, &lt;br /&gt; UART_BAUDRATE_BAUDRATE_Baud38400&lt;br /&gt; }; &lt;br /&gt; &lt;br /&gt; APP_UART_FIFO_INIT(&amp;amp;comm_params, &lt;br /&gt; UART_RX_BUF_SIZE, &lt;br /&gt; UART_TX_BUF_SIZE, &lt;br /&gt; uart_error_handle, &lt;br /&gt; APP_IRQ_PRIORITY_LOW,&lt;br /&gt; err_code);&lt;br /&gt; UNUSED_VARIABLE(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;The connected Termite App configured to the above parameters doesn&amp;#39;t&amp;nbsp;show anything&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. I tried to debug the application by going through it line-by-line and it stops on this spot and goes into the hard_fault handler:&lt;/p&gt;
&lt;p&gt;softdevice_handler.c, line 253&lt;/p&gt;
&lt;p&gt;// Enable BLE event interrupt (interrupt priority has already been set by the stack).&lt;br /&gt; return sd_nvic_EnableIRQ(SOFTDEVICE_EVT_IRQ);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SOFTDEVICE_EVT_IRQ is confugured as 21&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What&amp;#39;s wrong? :/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PS still hoping to get help with the topics 2 and from the original question &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>