Reset the board removing the firmware. and all data.

Hi 

I am using nrf52840 in my custom board. I have a gpio button which is assigned for as a factory reset button. So when i press the button the whole board needs toi be reseted removing firmware , data , configuration. How is that possible.

Parents Reply
  • Hi, 

    Thank you for the reply

    what does the function bt_mesh_reset();  do.

    when i try to reset with the function i got an error

    ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:331
    command opcode 0x2042 timeout with err -11
    [00:00:28.807,586] <err> os: r0/a1: 0x00000003 r1/a2: 0x00000000 r2/a3: 0x00000002
    [00:00:28.807,617] <err> os: r3/a4: 0x20003038 r12/ip: 0x00000010 r14/lr: 0x00023585
    [00:00:28.807,617] <err> os: xpsr: 0x41000016
    [00:00:28.807,617] <err> os: Faulting instruction address (r15/pc): 0x00023590
    [00:00:28.807,647] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    [00:00:28.807,678] <err> os: Fault during interrupt handling

    [00:00:28.807,708] <err> os: Current thread: 0x200057e0 (idle)
    [00:00:28.918,579] <err> fatal_error: Resetting system

Children
Related