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

Error running NCS OpenThread CLI example

Hello, when I run OpenThread CLI example in NCS 1.4.0, I get the following message on the serial port:

E: Failed to store setting 3, ret -22

I am using the nrf52840 DK

Parents
  • Hi GPereira,

        Did you get the WELLCOME_TEXT printout at first? or your only see this error from the serial port after reseting nrf52840 DK? I tried with putty and get the following printout:

     nRF5 802154 radio initialized
    I: 8 Sectors of 4096 bytes
    I: alloc wra: 0, fc0
    I: data wra: 0, b4
    I: State changed! Flags: 0x001fc310 Current role: 0
    I: OpenThread version: OPENTHREAD/g07f430dac; NONE; Nov 13 2020 11:54:33
    I: Network name: ot_zephyr
    32muart:~$ I: State changed! Flags: 0x0100103d Current role: 1
    *** Booting Zephyr OS build v2.4.0-ncs1  ***
    I:
    
    OpenThread Command Line Interface is now running.
    Use the 'ot' keyword to invoke OpenThread commands e.g. 'ot thread start.'
    For the full commands list refer to the OpenThread CLI documentation at:
    https://github.com/openthread/openthread/blob/master/src/cli/README.md
    
    I: State changed! Flags: 0x00000040 Current role: 1
    I: State changed! Flags: 0x000012a5 Current role: 4
    
    uart:~$ ot state
    leader
    Done
    

  • This is what I get after flashing or resetting the board:

    RF5 802154 radio initialized
    I: 8 Sectors of 4096 bytes
    I: alloc wra: 0, f70
    I: data wra: 0, 11b
    I: State changed! Flags: 0x00038200 Current role: 0
    I: OpenThread version: OPENTHREAD/g07f430dac; NONE; Nov 13 2020 11:57:35
    I: Network name: ot_zephyr
    I: State changed! Flags: 0x0101d01d Current role: 1
    *** Booting Zephyr OS build v2.4.0-ncs1  ***
    I: 
    
    OpenThread Command Line Interface is now running.
    Use the 'ot' keyword to invoke OpenThread commands e.g. 'ot thread start.'
    For the full commands list refer to the OpenThread CLI documentation at:
    https://github.com/openthread/openthread/blob/master/src/cli/README.md
    
    32muart:~$ E: Failed to store setting 1, ret -22
    E: Failed to store setting 3, ret -22
    E: Failed to store setting 3, ret -22
    I: State changed! Flags: 0x000012a5 Current role: 4
    E: Failed to store setting 3, ret -22
    E: Failed to store setting 3, ret -22

    This doesn't happen with my nrf52833 DK

Reply
  • This is what I get after flashing or resetting the board:

    RF5 802154 radio initialized
    I: 8 Sectors of 4096 bytes
    I: alloc wra: 0, f70
    I: data wra: 0, 11b
    I: State changed! Flags: 0x00038200 Current role: 0
    I: OpenThread version: OPENTHREAD/g07f430dac; NONE; Nov 13 2020 11:57:35
    I: Network name: ot_zephyr
    I: State changed! Flags: 0x0101d01d Current role: 1
    *** Booting Zephyr OS build v2.4.0-ncs1  ***
    I: 
    
    OpenThread Command Line Interface is now running.
    Use the 'ot' keyword to invoke OpenThread commands e.g. 'ot thread start.'
    For the full commands list refer to the OpenThread CLI documentation at:
    https://github.com/openthread/openthread/blob/master/src/cli/README.md
    
    32muart:~$ E: Failed to store setting 1, ret -22
    E: Failed to store setting 3, ret -22
    E: Failed to store setting 3, ret -22
    I: State changed! Flags: 0x000012a5 Current role: 4
    E: Failed to store setting 3, ret -22
    E: Failed to store setting 3, ret -22

    This doesn't happen with my nrf52833 DK

Children
Related