gazzer
1 µW
A few weeks ago, a fault with my TSZD2b/860c/OSF rendered it non-functional. A bit of research here led me to the likelihood that the controller's Option Byte was corrupted. I was able to finally resolve the issue by re-flashing the Option Byte; however it was rather tedious due to all of the error messages I was getting. I've added snippets of the log file below showing the pertinent messages, which show, in my mind, flaky communication through the ST-link v2 clone I was using. I must have attempted reprogramming 10 times until success.
So my question, finally: Is this communication issue/error train caused by the STLink device? Wiring connection was short and I verified all of the pins? I did try a different STLink device with the same flaky results. Also tried 3.3v and also with and without the SWIM-RST wire. I have 2 additional STLink v2 devices that I have not yet tried, but they are all visibly the same so I'd expect the same behavior.
If my difficulty was related to the STLink device(s), can anyone recommend one that would be reliable? Thanks much.
---------------------------------------------------------------------
> Reading OPTION BYTE area...
Error on Option Bytes (complementary bytes). Reprogram Option Bytes of device
< OPTION BYTE reading failed.
> Loading file E:\s-trike-option.s19 in OPTION BYTE area ...
< File successfully loaded. File Checksum 0x20
> Programming OPTION BYTE area...
Cannot communicate with the device !
Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.
If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider: Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.
< OPTION BYTE programming failed.
Error on Option Bytes (complementary bytes). Reprogram Option Bytes of device
Problem while trying to Reset swim and device. Apply a Power On Reset
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
Error : Error checking device ! Check the configuration or the device !
> Programming OPTION BYTE area...
Programming failed on Option Byte
< OPTION BYTE programming failed.
> Reading OPTION BYTE area...
Wrong device selected ! Check the configuration or the device !
< OPTION BYTE reading failed.
> Programming OPTION BYTE area...
Error : Error checking device ! Check the configuration or the device !
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
Error : Error checking device ! Check the configuration or the device !
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
Error : Wrong device selected ! Check the configuration or the device !
Error : Programming failed on Option Byte
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
< OPTION BYTE programming completed.
> Verifying OPTION BYTE area...
< OPTION BYTE successfully verified.g failed.
> Programming OPTION BYTE area...
Wrong device selected ! Check the configuration or the device !
Programming failed on Option Byte
< OPTION BYTE programming failed.
> Programming OPTION BYTE area...
< OPTION BYTE programming completed.
> Verifying OPTION BYTE area...
< OPTION BYTE successfully verified.
Yay
So my question, finally: Is this communication issue/error train caused by the STLink device? Wiring connection was short and I verified all of the pins? I did try a different STLink device with the same flaky results. Also tried 3.3v and also with and without the SWIM-RST wire. I have 2 additional STLink v2 devices that I have not yet tried, but they are all visibly the same so I'd expect the same behavior.
If my difficulty was related to the STLink device(s), can anyone recommend one that would be reliable? Thanks much.
---------------------------------------------------------------------
> Reading OPTION BYTE area...
Error on Option Bytes (complementary bytes). Reprogram Option Bytes of device
< OPTION BYTE reading failed.
> Loading file E:\s-trike-option.s19 in OPTION BYTE area ...
< File successfully loaded. File Checksum 0x20
> Programming OPTION BYTE area...
Cannot communicate with the device !
Check the SWIM cable connection and check all the needed pin connections on the SWIM connector.
If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider: Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low.
< OPTION BYTE programming failed.
Error on Option Bytes (complementary bytes). Reprogram Option Bytes of device
Problem while trying to Reset swim and device. Apply a Power On Reset
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
Error : Error checking device ! Check the configuration or the device !
> Programming OPTION BYTE area...
Programming failed on Option Byte
< OPTION BYTE programming failed.
> Reading OPTION BYTE area...
Wrong device selected ! Check the configuration or the device !
< OPTION BYTE reading failed.
> Programming OPTION BYTE area...
Error : Error checking device ! Check the configuration or the device !
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
Error : Error checking device ! Check the configuration or the device !
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
Error : Wrong device selected ! Check the configuration or the device !
Error : Programming failed on Option Byte
Error : < OPTION BYTE programming failed.
> Programming OPTION BYTE area...
< OPTION BYTE programming completed.
> Verifying OPTION BYTE area...
< OPTION BYTE successfully verified.g failed.
> Programming OPTION BYTE area...
Wrong device selected ! Check the configuration or the device !
Programming failed on Option Byte
< OPTION BYTE programming failed.
> Programming OPTION BYTE area...
< OPTION BYTE programming completed.
> Verifying OPTION BYTE area...
< OPTION BYTE successfully verified.
Yay