cancel
Showing results for 
Search instead for 
Did you mean: 

SWIM corrupt

KAsta.1
Associate

To check halt mode i've set all gpio's to out mode, but some of them was on same line with SWIM. Now i can't promgram mk =) How can i solve this problem? Maybe there is any way to hard clean memory? 

STM8L050J3M3

SOLVED

Datasheet page 23 (https://www.st.com/resource/en/datasheet/stm8l050j3.pdf)

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 is LOCKED FOREVER (if the NRST pin is not available on the package). This initial delay can be removed in the final (locked) code. 

0 REPLIES 0