2014-11-08 02:36 AM
1. I have STM8S003F3 & want to use its debug pin as output.
So I will configure it my code.
2. Will that make debug option dead?
On next power up, will I be able to debug the code?? Because pin will already be configured as output by that time
2014-11-08 06:36 AM
Yes, you can use SWIM pin as output, it won't brick the device.
2014-11-10 03:08 AM
Hi
I am answer this from memory, and bear in mind that I work with the STM32 but I have written the driver for the STM32 to program a STM8 with SWIM ''2. Will that make debug option dead?
On next power up, will I be able to debug the code?? Because pin will already be configured as output by that time
'' Yes and No. If the debug is done with SWIM - it will toggle the reset line on SWIM entry. If the line is in use for SWIM - it CANNOT be used for output (ie it is held by the SWIM interface). The simple answer is : if you debug - you cannot use the Pin for output. If you do not debug - the pin will be configures for output