Hi there,
I modified the OpenFlashLoader so that he encrypts the given application binary and writes it to the QSPI attached flash memory.
When I run the OpenFlashLoader using JFlash via "Programm & Verify" it works out fine, the application is flashed and verified successfully, although the overall operation is quite slow.
The problem though is, when the same OpenFlashLoader is used by any other tool then JFlash, e.g. the Ozone debugger, the flashing process fails in a quite early stage, saying "Verify failed...".
My theory is, that it works with JFlash, because JFlash is rewriting and verifying the complete flash from beginning to end. On the other hand Ozone seems to have some logic when writing/verifying in that respect, that he does not have to write/verify each and every flash page, which then causes problems on verify because the flash content is encrypted (but I'm not sure).
My questions are:
Help and tips are much appreciated, thanks in advance
Best regards
Paul
I modified the OpenFlashLoader so that he encrypts the given application binary and writes it to the QSPI attached flash memory.
When I run the OpenFlashLoader using JFlash via "Programm & Verify" it works out fine, the application is flashed and verified successfully, although the overall operation is quite slow.
The problem though is, when the same OpenFlashLoader is used by any other tool then JFlash, e.g. the Ozone debugger, the flashing process fails in a quite early stage, saying "Verify failed...".
My theory is, that it works with JFlash, because JFlash is rewriting and verifying the complete flash from beginning to end. On the other hand Ozone seems to have some logic when writing/verifying in that respect, that he does not have to write/verify each and every flash page, which then causes problems on verify because the flash content is encrypted (but I'm not sure).
My questions are:
- do you have an explanation, why it works with JFlash but not with Ozone?
- do you see any possibilities to configure Ozone or the OpenFlashLoader in a way, that downloading the application to the target device works also with the OpenFlashLoader writing the application encrypted?
Help and tips are much appreciated, thanks in advance
Best regards
Paul