cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S001j3 SWIM Pin lock, How to do Firmware level

csocom
Associate II

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.

0 REPLIES 0