完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,
我们正在尝试编程STM8S-Discovery,配备STM8S105x6 微控制器,使用本机引导加载程序(通过USART1引脚)。我们 通过移除R13-R14电阻来消除板载ST-Link。 我们正在使用USB-TTL(5伏)转换器,我们采用了RX, TX,GND和VCC信号并将它们连接到CN1连接器 发现板。我们正在使用Flash Loader演示软件PC,但是 我们仍然无法在STM8S上进行通信和编程 板。我们还编写了正确的选项字节以启用引导加载程序 (通过STVP软件,请参见附图),但没有任何成功。 按下“下一个”后,电路板是否保持复位状态 软件PC的按钮?你能说得对吗? 程序通过USART程序(使用ROM引导程序)? 先谢谢你, 最好的祝福。 注意:在来自STVP(读取选项字节)的附加图像中,我注意到数据表中写入的引导加载程序选项字节值il 0x55而不是0x55AA ..它是否正确? #bootloader#option-bytes #stm8 以上来自于谷歌翻译 以下为原文 Hi, we are trying to program a STM8S-Discovery, fitted with a STM8S105x6 microcontroller, using the native bootloader (via USART1 pins). We disconnetted the onboard ST-Link by removing R13-R14 resistor. We are using a USB-TTL (5 Volt) converter, from wich we took the RX, TX, GND and VCC signals and connected them to the CN1 connector of the Discovery board. We are using the Flash Loader Demo software PC, but we are still not able to communicate and program the STM8S on the board. We also wrote the proper option byte to enable the bootloader (via STVP software, please see the attached image), but without any success. Has the board to stay in reset state after the pressing of the ''next'' button of the software PC? Could you tell us please the right procedure to follow to program via USART (using ROM bootloader)? Thank you in advance, best regards. Note: in the attached image from STVP (read option byte), I noticed that the bootloader option byte value il 0x55 instead of 0x55AA as written in the datasheet.. is it correct anyway? #bootloader #option-bytes #stm8 |
|
相关推荐
1个回答
|
|
嗨安德里亚,
因为我不确切知道您的配置,所以此描述将遵循我的方式。 硬件:首先,我将一个上拉电阻(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 |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2741 浏览 1 评论
3244 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1813 浏览 1 评论
3653 浏览 6 评论
6044 浏览 21 评论
1342浏览 4评论
203浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
356浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
446浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
275浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 19:51 , Processed in 0.982273 second(s), Total 48, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号