What exactly is required to run USB on an nRF52840 without an external crystal?

Long story short, I trusted the datasheet (big mistake) where it says an external crystal is optional. In previous builds, I had an external crystal onboard anyway, so this issue never arose, but now I don't want an external crystal, but it turns out the "optional" marking in the datasheet really means "there's no easy way to do this, oh ya, and no clear guide either".

1. I have no external crystal oscillator, how can I use USB as an HID device still?

2. Can I still use BLE reliably without the external crystal? I'm depending on 7.5ms intervals, 16 Kb/s throughput.

Please don't paste minute code snippets without telling me where to paste them. Thank you!

Parents Reply
  • Hi,

     

    Sorry, I oversaw that your device is in LDO operation.

    If you are on the latest NCS v2.9.0, you should add this to the overlay (example: nrf52840dk_nrf52840.overlay) file:

    &reg1 {
    	regulator-initial-mode = <NRF5X_REG_MODE_LDO>;
    };

     

    Or if you are using older version, you can add this to your prj.conf:

    CONFIG_BOARD_ENABLE_DCDC_HV=n
    CONFIG_BOARD_ENABLE_DCDC=n

     

    Kind regards,

    Håkon

     

Children
Related