This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sniffer not functioning.

ppi.zipHi, 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-156 , my device doesn't show up on sniffer.

I even tried to replace the dongle considering it most likely to be hardware issue. But the problem still persists. main.c Can you please guide on this.

Thanks in advance!!ppi.zip

Parents Reply Children
  • Hi I have seen this code. But i coudn't find anything as such. If APP_ERROR_CHECK fails I won'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:

    1. Setting a breakpoint in the while loop and verify that it stops there
    2. in debug mode, after executing for a little while, pause execution and see where it is.

    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?

    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.

    Can you please comment on what's going wrong over here.

    And if its some problem with the stack size, how do i rectify it.

    You can refer to my updated main.c file attached at the top.

    Thanks!!!

  • Hi Khosla

    Could you zip and attach the entire project?

    Then I might be able to run it, and try to figure out what is happening.

    Best regards

  • Sure. You can find the project attached at the top.

    Thanks!!!

  • Hi
    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.

    Best regards

  • Hi

    Sorry to be a pain, but I still can't get it to compile :(

    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).

    As an example, see the following project:
    ble_app_hrs.zip

    Then you just have to copy that folder into one of the SDK example folder and the project will compile.

    Also, can you let me know which version of the SDK you are using?

    Best regards
    Torbjørn

Related