<?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>Running ANT examples on PCA10056</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80092/running-ant-examples-on-pca10056</link><description>Hello everyone, 
 I would like to run the ANT examples &amp;quot;ant continuous scanning controller&amp;quot; and &amp;quot;ant scan and forward&amp;quot; on my nRF52840DK(PCA10056) boards however it only supports the older PCA10040 board. 
 How would I go about changing these to support</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Oct 2021 09:41:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80092/running-ant-examples-on-pca10056" /><item><title>RE: Running ANT examples on PCA10056</title><link>https://devzone.nordicsemi.com/thread/332097?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 09:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbde5bad-bfc8-425d-9100-f152eb337194</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;-- UPDATE --&lt;/p&gt;
&lt;p&gt;I have ported over &amp;quot;ant_scan_and_forward&amp;quot; as well, by using the &amp;quot;&lt;span&gt;ant_message_types&amp;quot; example as a base&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So when porting over the scan and forward example I ran into an issue that after sending my on/off command the board&amp;#39;s LEDs would turn on very shortly and then instantly off again.&lt;/p&gt;
&lt;p&gt;The default state would always be: LED1 flickers on/off very fast while LED2,3,4&amp;nbsp;would be off.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This was because old code from my base project &amp;quot;&lt;span&gt;ant_message_types&amp;quot; runs even though it looks to never be called in my main.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The file &amp;quot;ant_message_types_master.c&amp;quot; has an NRF_SDH_ANT_OBSERVER present that is initialized on startup and commenting this one out seems to fix the bug.&amp;nbsp;Removing ant_message_types_master.c would cause errors in my file structure, but commenting the entire class works as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running ANT examples on PCA10056</title><link>https://devzone.nordicsemi.com/thread/331716?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 12:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9a6bfab-1d74-42b7-8d95-76cdf26b59c4</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I found the issue to the unknown function.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d erased S340 from the board in my debugging process and therefore needed to write it back on&amp;nbsp;my DK&lt;/p&gt;
&lt;p&gt;Understandably so the program didn&amp;#39;t know what to do.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &amp;quot;ant_continuous_scanning_controller&amp;quot; has been ported&amp;nbsp;successfully to my PCA10056 and is working as intended.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running ANT examples on PCA10056</title><link>https://devzone.nordicsemi.com/thread/331714?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 12:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd6cac70-d981-4a49-937a-252f071ce722</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Maybe double check that the original PCA10056 example work as intended first?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running ANT examples on PCA10056</title><link>https://devzone.nordicsemi.com/thread/331708?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 12:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fbb4efb-e993-4ffa-833e-928ec86f5709</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thank you for helping me.&lt;/p&gt;
&lt;p&gt;I am using Segger and have followed your steps.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It has builded successfully, however&amp;nbsp;the converted application doesn&amp;#39;t work yet. (I&amp;#39;m working to port &amp;quot;ant_continuous_scanning_controller&amp;quot; first).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I&amp;nbsp;debug I run into the folllowing issues &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;before&lt;/strong&gt;&lt;/span&gt; jumping into the &amp;quot;int main(void)&amp;quot; loop:&lt;/p&gt;
&lt;p&gt;&amp;quot;Unknown function at 0xFFFFFFFE&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img alt="Unknown function at 0xFFFFFFFE" src="https://devzone.nordicsemi.com/resized-image/__size/320x37/__key/communityserver-discussions-components-files/4/5165.Knipsel.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Output window:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Preparing target for download
Executing Reset script TargetInterface.resetAndStop()
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘ant_msg_types_master_pca10056_s340.elf’ to J-Link
Programming 20.2 KB of addresses 00031000 — 00036109
Programming 0.0 KB of addresses 0003610c — 0003614b
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
Download successful
Stopped by vector catch&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any idea what this unknown function could be or how I can find out what it is? This one&amp;#39;s a bit tricky to&amp;nbsp;debug.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;Fixed it.&lt;/p&gt;
&lt;p&gt;Forgot to load in the SoftDevice S340&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running ANT examples on PCA10056</title><link>https://devzone.nordicsemi.com/thread/331683?ContentTypeID=1</link><pubDate>Wed, 29 Sep 2021 11:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b25cfae0-52d3-45c6-94f3-54987b4ef5e5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;PCA10040 means the example project is setup to be used with the nRF52-DK, which is using an nRF52832.&lt;/p&gt;
&lt;p&gt;PCA10056 means the example project is setup to be used with the nRF52840-DK, which is using an nRF52840.&lt;/p&gt;
&lt;p&gt;There are different flash, ram, and peripherals between the two different MCU&amp;#39;s, so (as you experience) you can&amp;#39;t run an pca10040 project directly on a pca10056.&lt;/p&gt;
&lt;p&gt;My suggestion is take ant project made for the pca10056 (e.g. examples\ant\ant_message_types\master\pca10056), and replace the main.c and sdk_config.h file from the pca10040 project (e.g. \examples\ant\ant_continuous_scanning_controller).&lt;/p&gt;
&lt;p&gt;In addition you will need to include all the files and paths from the pca10040 project to the pca10056 project. Presuming you are using SES as IDE in this case, then it may be easiest to open the two .emProject in a text editor and simply copy the various&amp;nbsp;&amp;lt;folder Name=&amp;quot;nnn&amp;quot;&amp;gt; and file names from the pca10040 to the pca10056 project.&lt;/p&gt;
&lt;p&gt;Hope that helps,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>