2023-12-10 09:44 PM
2023-12-15 02:51 AM - edited 2023-12-15 02:52 AM
Hello @jinhui1- and welcome to the community :),
Thanks to develop your posts in English so it helps us, and the users of our community understand your question and try to help you.
STM32F407VET6 LQFP-100 found that the device authorization code was lost during testing
This batch is testing an STM32F407VET6, and during the test it was discovered that the device authorization code was lost.
1. How the authorization code works
Equipment production sends authorization instructions through software to the device to write the authorization code. After receiving the instruction, the device reads the FLASH ID, then encrypts it, and writes the encrypted data into the OTP area (0x1FFF7800). After the programming is successful, read it out to verify whether The write is successful, if successful, restart, otherwise return failure.
2. Problem analysis
Through single-step debugging, the FLASH ID is correct, but part of the OTP data read becomes All are zero, so the data comparison fails.
What is the Rev_Id of STM32F407VET6 devices you are using?
Could you please share a photo of device top marking?
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.