Hi, I am using the FlashUtilCL.exe command line programmer to program EFM8BB10F8G-A-QFN20 MCUs using a USB EC3 debugger. I have found the documentation a bit unclear in some parts so have some questions.
1. The command line readme is dated 2011 but the utildll.exe release notes have updates up to 2017. Is there a newer readme for the command line programmer?
2. Does the downloadusb command include a verify function?
3. When the command succeeds should there be a return code shown? I get no return code for success and if there is an error I get a text description of the error.
4. I have found that if I run the downloadusb command with the lock option I can still run the verifyusb command with no errors. Is this correct?
Not a lot has changed with these utilities, I don't expect there is a new readme file. There is a VerifyUSB function separate from DownloadUSB, so you will need to run them separately.
The error code is returned by the program. To get the error code from the command line you can use %errorlevel% if you are using cmd, and $? if you are using bash. See this link for more information: https://stackoverflow.com/questions/334879/how-do-i-get-the-application-exit-code-from-a-windows-command-line
For your last question, try verifying the part against a different image than you programmed to it, and see if that gives you an error.