nrf5340 sysbuild LFCLK loop

Hello, 

I have a custom nrf5340 board without a 32kHz clock attached. When using a sysbuild configuration (with MCUBOOT) and debugging the code I get stuck in this LFCLK loop:

I tried using another nrf5340dk and cut the SB1 and SB2 with the same results of the LFCLK loop. I have added the configs to both the prj.conf of the app core and net core: 

CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n
to the project but the results are the same. I tried changing the config to K32SRC_SYNTH and K32SRC_PPM and the problems persists. 
I am using:
-nrf5340dk_nrf5340
-SDK v2.6.0
Parents Reply Children
  • Hello Dejans,

    I am using sysbuild as I want to have both the application core code and the network core code of the nrf5340 separate from the SDK. I started by using a normal project and then adding "empty_net_core" project as a child image in a multi-image build, but then I had to modify the SDK. If there is another approach to have both cores codes separate and outside of the SDK without using sysbuild please let me know.

    Best regards,

    Domen

  • Hi Domen, 

    Can you provide more information about your application? What did you flash on both cores? How did you build your application? What do you refer to as normal project? Could you provide information why you needed to modify SDK and in which way?

    Best regards,
    Dejan

  • Hello Dejan,

    Can you provide more information about your application?
    I have a nrf5340, and I want to capture adc values from an external ADC and sent the values via the net_core with ESB to another nrf5340. I am using sysbuild as I have had a understanding that a multi-image build is fazing out and your are transitioning to sysbuild.
    What did you flash on both cores?
    Both cores have a minimal main.c with contents:
    /*
    * Copyright (c) 2022 Nordic Semiconductor ASA
    *
    * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    */

    #include <zephyr/kernel.h>
    #include <zephyr/logging/log.h>

    LOG_MODULE_REGISTER(main_net, LOG_LEVEL_DBG);


    int main(void)
    {

    while(1)
    {
    LOG_DBG("Hello World! %s\n", CONFIG_BOARD);
    k_yield();
    }

    return 0; /* Dummy application. Unused main */
    }

    How did you build your application?
    Using nRF connect for desktop and visual studio code using SDK v2.6.0
    What do you refer to as normal project?
    Normal project I mean as in "Create new application" without sysbuild configuration
    Could you provide information why you needed to modify SDK and in which way?
    Because with the inclusion of CONFIG_NCS_SAMPLE_EMPTY_NET_CORE_CHILD_IMAGE=y I have modified the empty_net_core project as it included it in the parent application for a multi-image build

    Best regards,

    Domen

  • Hi Domen,

    Sysbuild is not yet production ready. For now, you could try building your project as a standard multi-image build without sysbuild.

    Best regards,
    Dejan

Related