Other Parts Discussed in Thread: TEST2
Hi,
I download a container, pass it through the OtaArchive_Process() function. This goes through parsing the tar file, successful verification of signature, creating the files in filesystem/saving them etc. _SaveOtaVersionFile(&pOtaArchive->OtaVersionFile) is also executed successfully where the bundle state is updated. The archive status is OtaArchiveState_CompletePendingTesting. However, when I do a OtaArchive_Commit, the function returns an error -10282. What could be the cause ?
The tar file just has a test.txt (with 20 bytes of data) and is signed by the dummy certs in SDK.
Code snippet .looks like this (based on https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/973463/launchxl-cc3235sf-local-ota-is-there-a-place-i-can-point-the-ota-code-to-a-file-the-user-has-uploaded-i-e-bypass-state-machine/3596060#3596060)
unproc = 4096;
if (OtaArchive_GetPendingCommit()) { if (OtaArchive_Commit()) { } }
Thanks,