Hi,
I have serval problems about the file system of CC3235S.
1. I know sl_Fsclose(fileHdl, 'A', 1) means abort function, and it will set the nonactive copy as the active one if the file is opened with FAILSAFE flag. However, it is strange when I write the test code to verify the file system, the abort function acts as the normal close(sl_Fsclose(fileHdl, certificate, signature, signature_len)). Although I can ignore this strange problem, I'm not sure wheather it will bring some other problems for me in the future.
2.I have referred the documentationintroducing file system, which shows servicepack is a special file and when the host writing the service pack, the sl_FsClose() function should receive a NULL certificate name and a NULL signature. The sl_FsClose() function returns -10363(SL_ERROR_FS_ILLEGAL_SIGNATURE) when I follow the guide, but another strange problem happens, sl_FsClose() succeeds if i give an arbitrary string to signature, for example, sl_FsClose(fileHdl, NULL, "123", 3), sl_FsClose(fileHdl, NULL, "ab", 2), and so on.
In short, my main problem is why the documentation is different from what I tested, which is really confusing.
Some other information:
Certification File Name: dummy-root-ca-cert
signature file name: dummy-root-ca-cert-key
I'm not English native speaker, so if I didn't express clearly, please feel free to ask me, thank you.