ST意法半导体
直播中

段丽

7年用户 162经验值
私信 关注
[问答]

STVP无法连接到MCU

嗨,


我正在使用STM8S-Discovery板和STVD软件的编程器调试STM8S105x6的软件。

一切顺利,直到突然在进入调试模式时弹出错误:'**连接错误(u***:// u***):游泳错误[30006]:通信初始化错误:芯片没有回答'。 STVP也无法连接到MCU。

我已经尝试过其他板子(以前有过工作)。我已经将SWIM电线直接焊接到威廉希尔官方网站 板上。没有任何结果。

当我第一次更换程序员时,问题仍然存在。但是有了第三个程序员,问题就解决了。

但过了一会儿,问题就出现了。

这个程序员似乎还可以,因为我可以在demoboard本身上编程MCU。

我不知道可能是什么问题。

关于董事会的更多信息:

*连接了SWIM的GND,复位和数据线。 VCC未连接
*复位引脚具有10nF的上限和10K的VCC(我试图去掉两者)
* VCC = 5V1

谁知道什么是错的???

问候,
约翰

以上来自于谷歌翻译


以下为原文




Hi,


I am debugging software for an STM8S105x6, using the programmer from the STM8S-Discovery board and STVD software.

All went fine, until suddenly an error popped up while entering debug mode: '** Connection error (u***://u***): swim error [30006]: comm init error: chip does not answer'. Also STVP cannot connect to the MCU.

I've tried to other boards (that have worked before). I've directly soldered the SWIM wires to the board. Without any result.

When i changed the programmer a first time, the problem remained. But with a third programmer, the problem was solved.

But after a while the problem came back.

This programmer still seems to be ok, because i can program the MCU on the demoboard itself.

I have no clue what can be the problem.

Some more info about the board:

  * GND, reset and dataline for SWIM are connected. VCC is not connected
  * The reset pin has a 10nF cap to gnd and 10K to the VCC (i have tried to remove both)
  * VCC = 5V1

Anyone an idea what is wrong???

Regards,
Johan

回帖(3)

张婧怡

2019-2-13 13:37:15
你有关于st-link v2错误的任何解决方案:30006?
我遇到了同样的错误。
RGDS

以上来自于谷歌翻译


以下为原文







Have u got any solution about the st-link v2 error:30006 ?
i encounter the same error.
rgds
举报

张林锋

2019-2-13 14:29:19
必须使用470-680欧姆电阻将SWIM引脚上拉至Vcc。当我尝试使用1k电阻时,我遇到了类似于你的问题。

以上来自于谷歌翻译


以下为原文





The SWIM pin must be pulled up to Vcc with 470-680 Ohm resistor. When I tried to use 1k resistor, I was getting problems similar to yours.
举报

陈勇

2019-2-13 14:41:37
我在STM8L152设计上间歇性地得到了相同的连接错误。我的SWIM威廉希尔官方网站 与演示板完全相连,引脚1连接到板载稳压器,引脚2连接到PA0,引脚3连接到GND,引脚4连接到PA1。然后我通过''STM8 SWIM通信协议和调试模块'(UM0470)手册和第6页阅读它说SWIM模块将使用LSI或HSI,而不是外部时钟或晶体。在本手册的其余部分中,它仅涉及使用HSI。所以我从我的LSE晶体切换到HSI时钟,并没有得到那个连接错误。

以上来自于谷歌翻译


以下为原文





I was getting the same connection error intermittently on my STM8L152 design. I had the SWIM circuitry wired exactly as the demo board, Pin 1 to my on board regulator, Pin 2 to PA0, Pin 3 to GND, and Pin 4 to PA1. Then I was reading through the ''STM8 SWIM communication protocol and debug module'' (UM0470) manual and on page 6 it says that the SWIM module will either use the LSI or HSI, not external clocks or crystals. In the rest of the manual it only refers to using the HSI. So I switched from my LSE crystal to the HSI clock, and haven't gotten that connection error.
举报

更多回帖

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