zephyr/samples/subsys/settings fails

Hallo,

I'm testing zephyr with nrf52833. When Flashing "zephyr/samples/subsys/settings" example it fails hier is the output:


*** Booting Zephyr OS build zephyr-v3.1.0 ***


*** Settings usage example ***


settings subsys initialization: OK.

subtree <alpha> handler registered: OK

subtree <alpha/beta> has static handler


##############

# iteration 0

##############


=================================================

basic load and save using registered handlers


load all key-value pairs using registered handlers

loading all settings under <beta> handler is done

loading all settings under <alpha> handler is done


save <alpha/beta/voltage> key directly: fail (err -2)

OK.


load <alpha/beta> key-value pairs using registered handlers

loading all settings under <beta> handler is done


save all key-value pairs using registered handlers


load all key-value pairs using registered handlers



=================================================

loading subtree to destination provided by the caller


direct.length = -2305582420662946769

direct.length_1 = 2328

direct.length_2 = 536872592


=================================================

Delete a key-value pair


delete <alpha/length>: fail (err -2)

Can't to load the <alpha/length> value as expected



=================================================

Service a key-value pair without dedicated handlers


<gamma> = 0 (default)

save <gamma> key directly: fail (err -2)
  • Hier is what expected:


    ***** Booting Zephyr OS build v2.1.0-rc1-123-g41091eb1d5e0 *****

    *** Settings usage example ***

    settings subsys initialization: OK.
    subtree <alpha> handler registered: OK
    subtree <alpha/beta> has static handler

    ##############
    # iteration 0
    ##############

    =================================================
    basic load and save using registered handlers

    load all key-value pairs using registered handlers
    loading all settings under <beta> handler is done
    loading all settings under <alpha> handler is done

    save <alpha/beta/voltage> key directly: OK.

    load <alpha/beta> key-value pairs using registered handlers
    <alpha/beta/voltage> = -3025
    loading all settings under <beta> handler is done

    save all key-value pairs using registered handlers
    export keys under <beta> handler
    export keys under <alpha> handler

    load all key-value pairs using registered handlers
    export keys under <beta> handler
    export keys under <alpha> handler

    =================================================
    loading subtree to destination provided by the caller

    direct load: <alpha/length/2>
    direct load: <alpha/length/1>
    direct load: <alpha/length>
    direct.length = 100
    direct.length_1 = 41
    direct.length_2 = 59

    =================================================
    Delete a key-value pair

    immediate load: OK.
    <alpha/length> value exist in the storage
    delete <alpha/length>: OK.
    Can't to load the <alpha/length> value as expected

    =================================================
    Service a key-value pair without dedicated handlers

    <gamma> = 0 (default)
    save <gamma> key directly: OK.
  • Hi M.Zaki, 
    Could you let me know which nRF Connect SDK version you are using ? 
     I did a quick test here with NCS v2.5.0 (Zephyr  v3.4.99-ncs1)  and it worked fine. The print log showed the as expected log that you posted. 

Related