Hello,
I have a custom flash loader that works with JLink and is able to do a basic operations like write, read, erase and L1 verification (L2 is not implemented for now).
I'm using python pylink library to handle the JLink device and automate these operations via a dedicated script. After flashing an image, It reports errors after flashing the image simply because L2 verification fails if it's not turned off.
However, it seems that L2 verification is turned on by default. I can turn it off completely, but it requires me to use JLink control panel to do so, but I want to use it from the python perspective so manual configuration is not an option for my case.
Although I can export the configuration from the control panel (in a form of .jlink file), it seems that it does not distinguish L1 and L2 verification in all of the options is has listed, but just includes "VerifyDownload" parameter which according to my testing can skip L2 verification (I do not get error after flashing when set to 0), but when it's set to 1, I do not know which option it chooses.
See the attached image which comes from your wiki page
My questions are the following:
1. Is *.jlink file the only way to skip L2 verification or is there also some other way to do so (maybe I could send a command to DLL or something)?
2. Is there any example available (I found none) how can I implement this L2 verification methods? - There is a mention of CRC calculation but it does not provide information about which type of CRC should be used (which polynomial is expected?)
Best regards,
Michael