2021-01-05 04:17 AM
STM8S001j3 SWIM PIN Not work, After hex file download (IAR EWSTM8 Compiler)
8 pin port (SWIM)
How to do in the firmware IAR.
-DATASHEET 12page-
Recommendation for SWIM pin (pin #8) sharing
As the NRST pin is not available on this device, if the SWIM pin should be used with the I/O pin functionality, it is recommended to add a ~5 seconds delay in the firmware before changing the functionality on the pin with SWIM functions. This action allows the user to set the device into SWIM mode after the device power on and to be able to reprogram the device. If the pin with SWIM functionality is set to I/O mode immediately after the device reset, the device is unable to connect through the SWIM interface and it gets locked forever. This initial delay can be removed in the final (locked) code.