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

LF SoftDevice Configuration on nRF52840 Custom Board

Hi all,

I've been trying to get BLE up and running on our custom board after writing firmware on the DK.  I am able to get other peripherals on our board up and running (i.e. UART, I2C, LEDs) so the nRF appears to be programming and running well.  However, the moment I enable BLE in my code, the program freezes up.

Based on some searching, it appears we need to configure our SoftDevice to use the internal RC oscillator instead of an external crystal, since our board only has an XC crystal.  I configured our code for the internal RC using examples on the forums and links such as https://jimmywongiot.com/2019/12/17/internal-rc-calibration-handling-on-the-nordic-nrf52-chipset/.  However, BLE is still not working on our board.

Here's our current test sdk_config.h and main.c based on the template for a BLE peripheral:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* Copyright (c) 2014 - 2020, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sdk_config.h

Do we need to configure the RC oscillator somewhere else?  Or is there something else that is causing the SoftDevice to hang?

Best,

Matt