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

nRF52840 custom board zephyr select LF source RC

Hi. I need some help to select the source for LF clock.

I'm using

NRF Connect SDK v1.5.0
SEGGER Embedded Studio for ARM
Release 5.34a Build 2021011401.44914
Nordic Edition
macOS x64 High Sierra v10.13.6

I build my own custom board with a nRF52840 module E73-2G4M08S1C from ebyte.

As the modules do not have ext LF XTAL, how do I select LF Clock from RC?

When using bare metal, I could select from
NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
// <0=> NRF_CLOCK_LF_SRC_RC
// <1=> NRF_CLOCK_LF_SRC_XTAL
// <2=> NRF_CLOCK_LF_SRC_SYNTH

But with Zephyr I'm not able to find how to change it.

I've already tried this
https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf5x-support-within-the-zephyr-project-rtos

and got errors:
/opt/nordic/ncs/v1.5.0/nrf/samples/bluetooth/mesh/light/prj.conf:56: warning: attempt to assign the value 'y' to the undefined symbol CLOCK_CONTROL_NRF5_K32SRC_RC
/opt/nordic/ncs/v1.5.0/nrf/samples/bluetooth/mesh/light/prj.conf:57: warning: attempt to assign the value 'y' to the undefined symbol CLOCK_CONTROL_NRF5_K32SRC_250PPM
error: Aborting due to Kconfig warnings


and this
https://devzone.nordicsemi.com/f/nordic-q-a/18764/nrf52---zephyr-boot-hangs/72466#72466

and got errors:
/opt/nordic/ncs/v1.5.0/nrf/samples/bluetooth/mesh/light/prj.conf:56: warning: attempt to assign the value 'y' to the undefined symbol CLOCK_CONTROL_NRF5_K32SRC_RC
/opt/nordic/ncs/v1.5.0/nrf/samples/bluetooth/mesh/light/prj.conf:57: warning: attempt to assign the value 'y' to the undefined symbol CLOCK_CONTROL_NRF5_K32SRC_250PPM
error: Aborting due to Kconfig warnings

Also how can I change the radio power?
I used to change using
sd_ble_gap_tx_power_set(uint8_t role, uint16_t handle, int8 tx_power);

I sent a message to Nordic in twitter and were told you are working on tutorials, any date planed to release it?

Thanks

Related