How to verify that the 32MHZ crystal is actually working (nRF52832?

I am using nRF connect SDK v2.9.0 with a custom developed board that looks like this:

I tried the 'Bluetooth LE LED Button service' sample as it's and noticed that nothing was working. I grapped my logic analyzer and hooked it up onto the 32MHZ but nothing is showing. I mean other functionalities like zepyrRTOS, PWM, GPIOs, I2C, etc...  are working successfully but not BLE.

does the nRF52832 have an internal clock through which it works by default and if so, how does it use the external clock. what is the first thing to debug?

this is the crystal I am using:

https://www.lcsc.com/product-detail/Crystals_YXC-Crystal-Oscillators-X322532MOB4SI_C9009.html 

and these are the schematics:

Parents
  • Hi there, 

    You can use the radio test sample to check if the radio works, you can select const carrier and sett 0 og +4dBm as output and then you should see something with an RSSI viewer. 

    Or you can use this HEX, it just puts the device on constant carrier on channel 40 (2440MHz). 
    8267.nrf52 carrier ch40 4dBm.hex



    Open you can use the nRF52 DK as a RSSI viewer, 

    This is what it would look like if you have just normal (office) background noise. 


    And this is what it would look like if the radio is sending a constant carrier on the selected channel. 

    It does not show if the 32MHz crystal is correctly loaded as the PPM is not really measurable this way, but it does show if there is something going on at least. 

    See: https://devzone.nordicsemi.com/guides/hardware-design-test-and-measuring/b/nrf5x/posts/general-pcb-design-guidelines-for-nrf52-series 


    Also we do HW reviews here so for future projects feel free to ask for a second pair of eyes to have a look at the design. 


    Regards,
    Jonathan

  • Hi Mr.Jonathan.

    Sorry for the late reply but I used a spectrum analyzer to make sure there was a signal being transmitted and I actually could see some peaks temporarily in the 2.4 to 2.5 GHZ bandwidth.

    However, the nRF52 BLE can be seen on my laptop but not via nRF connect app on my android mobile phone:

    when I tried to connect to it via my laptop, it gave me an error and I can see from the logs on the nRF52 side these logs:

    so the antenna is working but is there anything to be modified from the nRF Connect App side for such an error?

Reply
  • Hi Mr.Jonathan.

    Sorry for the late reply but I used a spectrum analyzer to make sure there was a signal being transmitted and I actually could see some peaks temporarily in the 2.4 to 2.5 GHZ bandwidth.

    However, the nRF52 BLE can be seen on my laptop but not via nRF connect app on my android mobile phone:

    when I tried to connect to it via my laptop, it gave me an error and I can see from the logs on the nRF52 side these logs:

    so the antenna is working but is there anything to be modified from the nRF Connect App side for such an error?

Children
  • Check permissions.

    If you can't scan BTLE stuff in nrf connect for mobile app on android, you don't have "coarse location" permission enabled.

    Note that you can't see connected devices as they usually don't advertize at all.

  • The application already has all the permissions it needs:

  • abdosalm said:
    Sorry for the late reply but I used a spectrum analyzer to make sure there was a signal being transmitted and I actually could see some peaks temporarily in the 2.4 to 2.5 GHZ bandwidth.

    This is not good enough, there are channels and specific frequencies so if there is an offset it might cause poor BLE performance ans it might just be bordering on acceptable results.

    This might also be the reason why device only works with\shows up on some devices and not others as sometimes there is a similar offset on some devices that work in favor for them. 


    Also its not just the antenna, its the whole RF performance we want to look at, so the clock and the emission, so maybe you could share what you saw on he spectrum analyzer?  Using the hex file i provided, as it will give a clear result that is easy to evaluate.

    Regards,
    Jonathan

Related