嗨安德里亚,
因为我不确切知道您的配置,所以此描述将遵循我的方式。
硬件:首先,我将一个上拉电阻(47k)带到μC的Tx引脚。即,当以μC进行复位时,将接口(USB转换器)的Rx端口拉至空闲状态(高电平)。否则引脚悬空,可能会降至低电平状态并向Flash Loader发送错误信息。
1.将接口连接到μC并启动Flash Loader软件。
2.在窗口中,您可以选择COM接口,然后使用USB转换器。
对于奇偶校验和回声我选择了奇偶校验无和回声模式,尽管Flash加载器演示器的用户手册(UM0462)显示了其他值。找出最好的方法。
3.重置μC。
!从现在开始,严格按照时间安排:
4.在μC上释放复位后,按下'不会超过一秒的时间
ñ
PC上Flash Loader窗口的ext'按钮。这将启动Flash Loader(PC)和引导加载程序(μC)之间的链接过程。
注意:在第二秒之后,μC将进入正常复位程序并从闪存启动正常程序。此后,引导加载程序被取消激活,您无法再次启动链接过程 - 直到重置μC。
希望你现在得到目标窗口:选择目标。
如果是 - 你成功了:
Ø
),如果没有 - o(尝试其他任何事情。
5.按照UM0462并为STM8S105x6选择目标STM8_32k。
6.依此类推......
希望,这可以帮到你。
最好的祝福,
WoRo
以上来自于谷歌翻译
以下为原文
Hi Andrea,
as I don’t know exactly about your configuration, this description will follow the way I did it.
Hardware: First I brought a pullup resistor (47k) to the Tx pin of the µC. That is to pull the Rx port of the interface (USB-converter) to idle state (high) when acting the reset at µC. Otherwise the pin is floating, it may fall to low state and send wrong information to the Flash Loader.
1. Connect the interface to the µC and start the Flash Loader software.
2. In the window, where you can select the COM interface, you take the one of your USB-converter.
For parity and echo I selected
Parity None and
Echo Mode although the User Manual of the Flash Loader Demonstrator (UM0462) shows other values. Find out the best way.
3. Reset the µC.
!!! From now on it is strictly recommended to following the timing:
4. AFTER you release the Reset on µC, you will have no more than ONE SECOND time to press the ‘
N
ext’ button of the Flash Loader window on your PC. This will start the link procedure between Flash Loader (PC) and bootloader (µC).
Notice: After the very second the µC will enter the normal reset procedure and start the normal program from the flash memory. Henceforth the bootloader is deactivated and you can’t initiate the link procedure again - until you reset the µC.
Hopefully you get now the window Target:
Select target.
If yes - you succeeded :
o
), if no - o( try anything else.
5. You follow the UM0462 and select the target STM8_32k for your STM8S105x6.
6. and so on …
Hope, this could help you.
Best Regards,
WoRo