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

BLE not working: I see signal on spectrum analyzer but can t see the device advertising

Hello, i am new to the whole NRF programming. I created my custom board with a NRF52811 SoC, without external LF crystal. I have been trying to get the device to advertise the BLE with blinky example, but i can t see it advertising with any device. I used RC for LF clock and i did flash softdevice 112 version 7.0.1. When i look for signal on spectrum analyzer i see the advertising channels where they should be and are quite strong.

Other than that my SoC works fine, i was able to program PDM microphone data sampling and writing it on the microSD card, led blinking works, just not BLE.

Does anyone have any idea what could be wrong? I put my code into the zip file.

ble_app_blinky.zip

Parents Reply Children
  • After much more debuging, also pcb design testing, antenna testing so i can eliminate hardware issues, what i discoverd is this: RC clock doesn t work for BLE on this chip, but i do get advertising signal using syntheised clock. What happens after that is that latency in advertisment keeps increasing with time, something that doesn t happen on DK emulating nrf52811. For a first few seconds of advertisment everything works fine, then the latency increases first by about 500ms, after that more than 1000ms, and it get s to around 1500ms... I belive something is wrong with the chip. I will try putting external 32khz crystal to the pins and see if that helps, but i can t shake the feeling that example code wasn t really tested on the actual nrf52811 chip.

  • nekize said:
    I belive something is wrong with the chip. I will try putting external 32khz crystal to the pins and see if that helps, but i can t shake the feeling that example code wasn t really tested on the actual nrf52811 chip.

     That does not sound correct, yes it sounds possible that the chip is behaving wrong with internal RC. I do not think that the SDK is being actually tested on nRF52811. The release notes say the SDK supports developing nRf52811 on a nRF52840 DK and that is how it must have been tested.

    So we need to keep that option open that using internal RC with this example might not be working on the actual chip. Please continue your tests with XTAL and do care to update me after you have some results.

  • So RC doesn t work. I tried now also with a 32khz XTAL crystal and i have the same symptom, that BLE starts well for the first few seconds then the latency becomes bigger and bigger.

    Right now i am using a MIFA antenna design, although antenna measurements show that it should work fine for BLE frequencies. Still i will try remaking my board with different antenna design and see if that can solve my problem.

    Is there a tutorial how to write a BLE advertisment app from scratch, if the SDK example doesn t work well, so i can test if there is something in the code that could be causing problems on this chip?

  • nekize said:
    So RC doesn t work. I tried now also with a 32khz XTAL crystal and i have the same symptom,

     This does not look like the issue with the clock I will try to see if we can get a nRF52811 on a DK and test this.  Due to low staffing because of summer holiday, the availability of a device to test can be delayed. I will keep you updated when i can test this.

     

    nekize said:
    Right now i am using a MIFA antenna design, although antenna measurements show that it should work fine for BLE frequencies. Still i will try remaking my board with different antenna design and see if that can solve my problem.

     sounds like a plan.

     

    nekize said:
    Is there a tutorial how to write a BLE advertisment app from scratch, if the SDK example doesn t work well,

     The problem is not with the example code, they have been used extensively in many products/projects. So i am guessing the problem is elsewhere -

  • I did found an errata for this chip where it says that internal RC can have a mistake from -25% to +40%, so i m guessig that was the issue why RC is not working.

    Ok, thank you for your help and i do understand problems with summer holidays. If i figure something out in the meantime, i ll post it here.

Related