Setup for Flashing code to the nrf52810 via jlink


Exclamation Help Needed: BLE Not Working on nRF52810 (Tried Zephyr & nRF5 SDK)

Hi everyone,
I really need help getting BLE working on my custom board with the nRF52810. I've been trying both Zephyr and the nRF5 SDK (using SEGGER Embedded Studio) but nothing has worked so far.


White check mark What Works

  • I’ve confirmed that my board is functional:
    I can toggle an LED using GPIO.

  • I’m able to flash code via SEGGER Embedded Studio.


X What’s Not Working

  • BLE isn’t advertising or connecting.

  • All BLE examples I try (especially on Zephyr) either:

    • Run into memory issues, or

    • Don’t work on my target hardware.

  • With nRF5 SDK, I can flash successfully but nothing shows up in nRF Connect.


brain What I Suspect

  • Something may be wrong in my software setup.

  • Possibly incorrect clock settings (I'm using both 32 MHz and 32.768 kHz crystals like in Nordic's reference design).

  • BLE examples might be too heavy for the nRF52810's memory (192 KB Flash / 24 KB RAM).


Gear️ My Setup

  • Board: Custom nRF52810 board (based on Nordic reference schematic)

  • Crystals:

    • 32 MHz HF XTAL

    • 32.768 kHz LF XTAL

  • Toolchain Attempts:

    • White check mark SEGGER Embedded Studio with nRF5 SDK 17.1.0 (S112 SoftDevice)

    • X Zephyr + West (examples too large, RAM overflow)


Question What I’m Looking For

  • A step-by-step setup guide that is confirmed to work on the nRF52810

  • Minimal BLE example (e.g. advertising-only or Blinky)

  • Proper sdk_config.h or prj.conf settings

  • Advice on reducing memory footprint

  • Confirmation that my clock settings are correct


Wrench My sdk_config.h Clock Settings (nRF5 SDK)

#define NRF_SDH_CLOCK_LF_SRC              1 // XTAL
#define NRF_SDH_CLOCK_LF_RC_CTIV          0
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV     0
#define NRF_SDH_CLOCK_LF_ACCURACY         1 // 20 ppm
#define CLOCK_ENABLED                     1
#define CLOCK_CONFIG_XTAL_FREQ            0 // Default (64 MHz)

Question Questions

  1. Are there any minimal BLE examples (for Zephyr or SDK) that actually work on nRF52810?

  2. Have I missed something in the clock or SoftDevice setup?

  3. Is Zephyr too heavy for nRF52810 even with optimizations?

  4. How do I strip down BLE configs to fit into 192KB Flash / 24KB RAM?


Any help would be hugely appreciated. If you’ve gotten BLE working on the nRF52810, please share your setup!

Thanks Pray


Parents
  • Hi Akanegbu, 

    Did you use ChatGPT to frame this question? 

    If your main problem is that you are able to use SES to flash and verified that LED toggling works, then you have verified the the SoC and the debugger are working fine and chip is up and running. Based on the given information, it is not possible to tell you why your advertisement is not working. Can you use nRF Sniffer to sniff the BLE packets in air to see if your board is advertising anything at all? 

    Have you run the debugger to see if your code runs to the point where the advertiser is started? Can you show me some serial output logs to see if there are any errors?

Reply
  • Hi Akanegbu, 

    Did you use ChatGPT to frame this question? 

    If your main problem is that you are able to use SES to flash and verified that LED toggling works, then you have verified the the SoC and the debugger are working fine and chip is up and running. Based on the given information, it is not possible to tell you why your advertisement is not working. Can you use nRF Sniffer to sniff the BLE packets in air to see if your board is advertising anything at all? 

    Have you run the debugger to see if your code runs to the point where the advertiser is started? Can you show me some serial output logs to see if there are any errors?

Children
No Data
Related