ST意法半导体
直播中

李勇进

8年用户 231经验值
私信 关注
[问答]

STM8 SWIM引脚作为输出/调试会使调试选项失效吗?

1.我有STM8S003F3&想要将其调试引脚用作输出。

所以我将它配置为我的代码。


2.这会使调试选项失效吗?

在下次上电时,我能调试代码吗?因为那时引脚已经被配置为输出

以上来自于谷歌翻译


以下为原文





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

回帖(2)

h1654155275.5809

2018-11-30 14:45:43
是的,您可以使用SWIM引脚作为输出,它不会使设备变砖。

以上来自于谷歌翻译


以下为原文





Yes, you can use SWIM pin as output, it won't brick the device.
举报

董英灏

2018-11-30 14:56:53
你好
 
 
 我从内存中回答这个问题,并记住我使用STM32但是我已经为STM32编写了驱动程序来使用SWIM编程STM8
 
 '' 2。这会使调试选项失效吗?
 
在下次上电时,我能调试代码吗?因为那时引脚已经被配置为输出
“”
 是和否。
 如果使用SWIM完成调试 - 它将切换SWIM条目上的重置行。
 如果该线路用于SWIM - 它不能用于输出(即它由SWIM接口保持)。
 
 简单的答案是:如果你调试 - 你不能使用Pin输出。
 如果你不调试 - 引脚将配置为输出

以上来自于谷歌翻译


以下为原文





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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分