Open rettichschnidi opened 2 weeks ago
There is no supported entropy driver for nRF54L15 yet in the upstream Zephyr Project. When there is one, it will need to support its APIs being invoked from thread and ISR execution contexts, and change the code in link layer to use a DTS choosen entropy device.
Triaged internally
Just realized: NETWORKING
selects ENTROPY_GENERATOR
. Therefore, a nRF54 based application can not support both, BT an IP communication. This limitation affects the product I am working on directly, pretty much rules out the usage of the nRF54L15. Prototypes used a nRF52840, which was no issue at all.
This fails:
west build --pristine --board nrf54l15dk/nrf54l15/cpuapp zephyr/samples/hello_world/ -- -DCONFIG_BT=y -DCONFIG_NETWORKING=y
Adding CONFIG_ENTROPY_BT_HCI=n
allows the build to succeed. I do no know the consequences of this however.
This builds (-DCONFIG_ENTROPY_GENERATOR=y
):
west build --pristine --board nrf54l15dk/nrf54l15/cpuapp zephyr/samples/hello_world/ -- -DCONFIG_BT=y -DCONFIG_ENTROPY_GENERATOR=y -DCONFIG_ENTROPY_BT_HCI=n
But this (-DCONFIG_NETWORKING=y
) still does not:
west build --pristine --board nrf54l15dk/nrf54l15/cpuapp zephyr/samples/hello_world/ -- -DCONFIG_BT=y -DCONFIG_NETWORKING=y -DCONFIG_ENTROPY_BT_HCI=n
For testing purposes with networking enabled, you could set CONFIG_TEST_RANDOM_GENERATOR=y
to get things compiled. This is not a permanent solution as the generated random numbers are not truly random.
For testing purposes with networking enabled, you could set
CONFIG_TEST_RANDOM_GENERATOR=y
to get things compiled. This is not a permanent solution as the generated random numbers are not truly random.
@jukkar hmm... i was not aware of this, can I use this in nRF54L Controller on target? (yes, of course it is test generator) it does provide the Zephyr Entropy APIs and dts node to be chosen, right?
I have used this Kconfig option to test networking things when random number generator is not available. Not sure if it would work for you in your use case.
Describe the bug
Building for nrf54l15dk fails when enabling Bluetooth and entropy drivers at the same time.
To Reproduce
west build --pristine --board nrf54l15dk/nrf54l15/cpuapp zephyr/samples/hello_world/ -- -DCONFIG_BT=y -DCONFIG_ENTROPY_GENERATOR=y
Expected behavior
Build should work. As it does e.g. for the
nrf52840dk
:west build --pristine --board nrf52840dk/nrf52840 zephyr/samples/hello_world/ -- -DCONFIG_BT=y -DCONFIG_ENTROPY_GENERATOR=y
Impact
Need to chose between
BT
andENTROPY_GENERATOR
. Which in turn means that I can not enable e.g.BT
andNETWORK
at the same time.Logs and console output
Environment (please complete the following information):
**Workaround***
CONFIG_ENTROPY_BT_HCI=n
allows the build to succeed. I do no know the consequences of this however.Additional context