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.

UCD3138: Understanding the function restore_default_all(); in the UCD3138 Full-Bridge Hard-Switch Firmware

Part Number: UCD3138


Hello, I was recently learning UCD3138 full-bridge hard-switch firmware
The following is my understanding of the function of restore_default_all(); I don't know if it is right?

The  function is to copy the coefficients stored in the data flash into RAM.                                                                                                                                                                                                                                 If the data in the data flash area A is correct after verification, the data in the A area is copied into the RAM,                                                                                                                                                                            If the data in the data flash area A is not correct after verification, continue to verify the B area.                                                                                                                                                                                                If the data and verification of the B area are correct, use the data of the B area.

Otherwise, the data of the A area and the B area will not be used, and the data in the Program Flash memory will be copied to the RAM by default.

Do not know if my understanding is wrong?
Thank you