This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I would like to use the doVerify function of API to read the flash and OTP area.
I could use the doVerify to get the correct value from Flash but OTP area not.
But I could checkt the value from the "Memory Browser" in CCS.
I could use the doVerify function to read the OTP on other C2000 series(F28002x, F28004x, F2802x....etc.).
Please give me some suggesstions on this. Thanks.
Hi Raphael,
Did it give back all 0s? Or did it give some random data?
Please note: On F280013x device, reading the DCSM OTP itself is enough to secure the device after programming the passwords etc in the OTP. This is not the case with the other devices that you mentioned above - they need a reset for the device to get in to secured mode after programming the DCSM configuration in the OTP.
Thanks and regards,
Vamsi
Hi Vamsi,
I got all 0xFFFF via doVerify() and I have not programmed the OTP area yet.
Hi Raphael,
Why do you think all 0xFFFF is incorrect? Unprogrammed flash/OTP will have all 0xFFFFs. Note that DCSM OTP will have some non-all-0xFFFFs data as well - TI programs few non all-0xFFFFs data; you can get these details in the DCSM chapter in the TRM. Please let us know if you have question on a specific address and the corresponding data.
Thanks and regards,
Vamsi
Raphael,
Verify functions compare the target memory data (flash/OTP) with the user provided data.
It won't return the data to you in a buffer. How did you use the verify function to read the OTP?
Thanks and regards,
Vamsi
Hi Vamsi,
I used 0xFFFFFFFF to Fapi_doVerify.
If I got the fail status and I could get the correct value from "au32StatusWord[1]".
Hi Raphael,
Instead of using the API, can you write a simple code to read the OTP and see what it returns?
Thanks and regards,
Vamsi
Hi Vamis,
OK, I will try it.
About the OTP, I also can't program OTP via Fapi_issueProgrammingCommand().
Could you give me some suggestions on this?
Raphael
Hi Rapahel,
Let us handle the OTP read issue on this thread. Let me know how it goes on the read.
Please open a new thread for OTP program question with appropriate title for the post.
Thanks and regards,
Vamsi
Hi Vamsi,
Could you provide some sample code to us?
I don't know how to read the OTP area directly.
Regards,
Raphael
Hi Rapheal,
OTP read is not any different than that of flash. Is your code able to read the flash successfully?
Thanks and regards,
Vamsi
Hi Rapheal,
Since I did not see reply from you, I am closing this post assuming that you are able to now read the flash successfully.
You can open a new post as needed if you have further questions.
Thanks and regards,
Vamsi