I am implementing some secure storage features and I would like to know how much of space I used. So I tried using secstore total from console of the device, in return I got this message:
root@swi-mdm9x28-wp:~# secstore total
Internal error check logs for details.
Jul 17 17:21:27 | secStore/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 796 | Sending QMI_SWI_SFS_GET_SPACE_INFO_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=3.[0x03]
Jul 17 17:21:27 | secStore/le_pa_secStore T=main | pa_secStore_qmi.c pa_secStore_GetTotalSpace() 2390 | Unexpected QMI response -6 (LE_FAULT)
Jul 17 17:21:27 | secstore/secstore T=main | secStoreTool.c PrintTotalSizes() 439 | Could not get available secure storage space. Result code LE_FAULT.
I am using legato 18.06.03, I have my application which has secStorage service connected but I tried stopping my application and I get the same error.
Also I tried setting the limit by adding this line in .adef:
But that also reproduces the same error
Another approach I took was adding secStorage Admin to my application and then calling the API provided:
The result of calling this function was LE_FAULT.
Does anyone have an idea what I am doing wrong? My legato isn’t built with the admin enabled flag but this function should be available without it also.