<?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>Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23146/sniffer-not-functioning</link><description>ppi.zip Hi, I am using radio with ppi to advertize packets as shown in the mainc file attached. Even after allocating the access address of Bluetooth on line 196 as set_address0(0x8E89BED6); and advertizing channel selected as 37 as shown in lines 150</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Aug 2017 12:17:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23146/sniffer-not-functioning" /><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91043?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 12:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb0ee67-3d29-4d35-aa8c-b9355cc9e30d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;
The first thing I spot with the debugger is that the code quickly gets stuck in the radio interrupt, which seems to get called over and over.&lt;/p&gt;
&lt;p&gt;I see that you set various events to generate interrupts in the NRF_RADIO-&amp;gt;INTENSET register. In this case you should also have several code snippets in the interrupt to handle the various events. As it is now I can&amp;#39;t see that you process other events than the END event.&lt;/p&gt;
&lt;p&gt;What you need is something like this...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if(NRF_RADIO-&amp;gt;EVENTS_READY != 0)
{
  NRF_RADIO-&amp;gt;EVENTS_READY = 0; 
  // Process the READY event
}
if(NRF_RADIO-&amp;gt;EVENTS_END != 0)
{
  NRF_RADIO-&amp;gt;EVENTS_END = 0;
  // Process the END event
}
// And similar for the ADDRESS and PAYLOAD events
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91042?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 11:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff18ea35-70b1-4a2b-a22e-6bbef2539d2a</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Hi, You can find the zipped folder at the top.&lt;/p&gt;
&lt;p&gt;Regards
Raghav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91040?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 11:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c878318-0204-497c-96fa-03e88862ad1e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry, I explained a bit poorly. I mean that if you zip your entire example folder then I can just move it into my SDK and make it work. You don&amp;#39;t have to move anything.&lt;/p&gt;
&lt;p&gt;I expect that you have a folder that looks something like this:
\nRF5_SDK_12.2.0\examples\peripheral\my_example\&lt;/p&gt;
&lt;p&gt;In this case you should just zip the entire &amp;#39;my_example&amp;#39; folder (or whatever you have called it), and send that to me.
Then I can unzip it into my own SDK examples folder and all the references should work.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91041?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 08:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:295c4bad-ec9b-4185-9dc5-625ea36aa345</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;I will check this out. I am using SDK v12.2 SES. Also I am using PCA 10028 and not PCA 10040.
Can u please clarify the last thing you mentioned above.
U mean I move this entire zipped folder into the ppi example folder which is my project?&lt;/p&gt;
&lt;p&gt;Thanks!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91039?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 07:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ce4c0b6-3f62-4589-a85a-7a5022d1d9d7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry to be a pain, but I still can&amp;#39;t get it to compile :(&lt;/p&gt;
&lt;p&gt;I meant the top example folder, including the main.c file, the sdk_config.h file and all the project files. I tried to piece together your project myself, but as I fix one error a new one pops up (probably because I have the wrong config file, or the wrong SDK version).&lt;/p&gt;
&lt;p&gt;As an example, see the following project:&lt;br /&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6087.ble_5F00_app_5F00_hrs.zip"&gt;ble_app_hrs.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you just have to copy that folder into one of the SDK example folder and the project will compile.&lt;/p&gt;
&lt;p&gt;Also, can you let me know which version of the SDK you are using?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91044?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 06:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca5b05d-ac79-49b1-adba-1ab7b7a7f18b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;
What I mean is if you can zip your project folder, with all the source and project files in it. Then all the references in the project should work, so that it can find all the files.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91038?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2017 11:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33266cbc-995d-4bb7-8bbd-526cd7aa45d5</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Sure. You can find the project attached at the top.&lt;/p&gt;
&lt;p&gt;Thanks!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91037?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2017 09:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68548917-dd8f-400c-9673-d5658955231e</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Khosla&lt;/p&gt;
&lt;p&gt;Could you zip and attach the entire project?&lt;/p&gt;
&lt;p&gt;Then I might be able to run it, and try to figure out what is happening.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91036?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 11:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f88b29e-5521-4494-96a1-e1c097b9e8c8</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Hi I have seen this code. But i coudn&amp;#39;t find anything as such.
If APP_ERROR_CHECK fails I won&amp;#39;t have noticed it unless i am in debug mode. So i tried running in debug mode to see if all is ok.
two ways i did it:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Setting a breakpoint in the while loop and verify that it stops there&lt;/li&gt;
&lt;li&gt;in debug mode, after executing for a little while, pause execution and see where it is.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;On doing the second way mentioned above, it started in a paused state and then when i run it, i get a hardfault with no call stack.
Whether this indicates too small main or may be stack size?&lt;/p&gt;
&lt;p&gt;However, when i set a breakpoint in while loop in the main, i got the hard fault before the breakpoint. But when i set some point very early in the main, it was okay then. But again i set it some time later but before the while only and agian it was a hard fault.&lt;/p&gt;
&lt;p&gt;Can you please comment on what&amp;#39;s going wrong over here.&lt;/p&gt;
&lt;p&gt;And if its some problem with the stack size, how do i rectify it.&lt;/p&gt;
&lt;p&gt;You can refer to my updated main.c file attached at the top.&lt;/p&gt;
&lt;p&gt;Thanks!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sniffer not functioning.</title><link>https://devzone.nordicsemi.com/thread/91035?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 12:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efecfaa-8c8b-4848-a431-ee361da61750</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Could you please have a look at the code for the solar beacon:
&lt;a href="https://github.com/NordicSemiconductor/solar_sensor_beacon/blob/master/src/hal_radio.c"&gt;https://github.com/NordicSemiconductor/solar_sensor_beacon/blob/master/src/hal_radio.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is also an implementation of BLE advertising using RADIO registers only.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>