nRF52810 board will not start on its own. It needs the RTT Viewer to be connected, then it will start and run.

nRF52810 board will not start on its own. It needs the RTT Viewer to be connected, then it will start and run. It has run on its own before with this configuration:

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y

CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y

CONFIG_SEGGER_RTT_MODE_NO_BLOCK_SKIP=n
Does anyone have any idea? I have struggled with this for a week now.

PS:
My schematic follows the reference schematics in the datasheet, which means the RESET line is floating. I am convinced this is not an issue because I have another board from Holyiot (beacon) with also floating reset. This board starts and run on its own just fine using the same firmware (pin assignments re-mapped, of course).

Regards,
Parents Reply
  • After digging deeper into the code, not just my code but NCS (so deep that led to gpio_nrfx.c), I found that DCDC is not disabled! I relied on the datasheet saying the default is LDO, and menuconfig has SOC_DCDC_NRF52X = n. But the devicetree's default is DCDC. In the dts file,

    &reg {
        regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;

    I override it in the overlay file,

    &reg {
        regulator-initial-mode = <NRF5X_REG_MODE_LDO>;
    My board starts on its own.

    Since my board is wired to run on LDO regulator, having the DCDC enabled caused the check for DCDC in gpio_nrfx.c to reset the board. main() is never reached so it looked like the board is not starting; it was actually resetting continuously. Somehow, connecting the RTT Viewer "corrected" the issue making my board run normally.
Children
No Data
Related