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.
Code is as follows, if the first password to send failure, it will erase the flash (password also restored to the default?), And then use the default password (this time on the right?).
If this is the case, you can easily pass the password
// Send Password... Causes mass erase if password is wrong! |
1
2
3
4
5
6
7
8
|
reply = BSL_RX_Password(pass); if (reply) { // Wrong password provided. // Memory is being mass erased. Setting a 1sec delay. *massErased = true ; worker->ReportProgress(5, "Mass erase occured!\r\n" ); Sleep(2000); |
1
|
// Memory is blank now. Re-send blank password to access device. |
1
2
3
4
5
6
7
8
9
10
|
reply = BSL_RX_Password(blankPass); if (reply) { worker->ReportProgress(10, "Password FAILED!\r\n" ); e->Result = false ; return false ; } } worker->ReportProgress(10, "Password Sent Successfully\r\n" ); |
**Attention** This is a public forum