Automatic device resets

Hey everybody,
I am using the WP76xx devices and noticed an interesting behaviour. If I reset the device multiple times, the software on the device resets itself to the initial state. This means all my apps are gone and I need to flash the device again.
I guess this is the intended behaviour to recover a device if you flash a faulty version during development. In my case, the reboots of the device are intentional.
Is there a way to disable this behaviour, so the software won’t reset itself after x resets?

Let me know if you need more details.

this is the rollback mechanism:

I suggest building the applicaiton together with legato.cwe image:

Hello, is it always 2 directories under /legato/systems/ ? I only have 1; current

if you install some application to module, it will have one more folder.
After that if you type “update -g” to mark the system to be good, it will only have one directory:



root@swi-mdm9x28-wp:~# legato version
19.11.6_225ac9b7882467c5c7f9e0bf4cdb5523
root@swi-mdm9x28-wp:~# ls /legato/systems/
current
root@swi-mdm9x28-wp:~# update /tmp/hello1.wp76xx_swi-wp76_5.0.0.update
Unpacking package: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
Applying update: 100% ++++++++++++++++++++++++++++++++++++++++++++++++++
SUCCESS
root@swi-mdm9x28-wp:~# app status
[running] atAirVantage
[running] atQmiLinker
[running] atService
[running] audioService
[running] avcService
[running] cellNetService
[running] dataConnectionService
[running] fwupdateService
[running] gpioService
[running] modemService
[running] portService
[running] positioningService
[running] powerMgr
[running] qmiAirVantage
[running] secStore
[stopped] smsInboxService
[stopped] spiService
[stopped] tools
[stopped] voiceCallService
[stopped] wifi
[stopped] wifiApTest
[stopped] wifiClientTest
[running] wifiService
[stopped] wifiWebAp
[running] hello1

root@swi-mdm9x28-wp:~# legato status
Systems installed:
  42 [good]
  43 [tried 1] <-- current
Legato framework is running.

root@swi-mdm9x28-wp:~# ls /legato/systems/
42       current


root@swi-mdm9x28-wp:~# update -g
System is now marked 'Good'.
root@swi-mdm9x28-wp:~# ls /legato/systems/
current
1 Like