完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,
我正在使用STM8S207R8T6,在尝试编程时遇到问题。 我已经构建了我的应用程序并在STVD中单击“启动调试”。 之前的固件启用了ROP,因此我选择禁用它并擦除闪存。 我设法启动应用程序,但PC没有自动设置在主函数的开头,它设置为0x3f,我不知道为什么。如果我手动更改PC,我的应用程序就会运行。 直到这里,几乎可以。 问题是当我想使用''STVD>编程我的MCU时。工具>程序员''或使用STVP。 我总是得到相同的错误消息: 编程... 选项字节: >程序设计 错误:无法与设备通信! 检查SWIM电缆连接并检查SWIM连接器上所需的所有引脚连接。 如果应用程序代码使用Swim Disable和Reset引脚作为输出或已禁用SWIM Clock Divider: 立即尝试关闭并打开应用电源,同时NRST复位引脚被强制为低电平。 我不明白为什么我会收到这个错误。我的硬件连接和SWIM通信都可以,因为它们在调试模式下工作! 我该如何解决这个错误? 提前致谢。 #stvd#st-link #stvp 以上来自于谷歌翻译 以下为原文 Hello everybody, I am using a STM8S207R8T6 and I have a problem when trying to program it. I have build my application and click on ''start Debug'' in STVD. There were a previous firmware with ROP enabled, so I choose to disable it and erase flash memory. I managed to start the application but the PC is not automatically set at the beginning of the main function, it is set to 0x3f and I don't know why. If I change manually the PC my application is then running. Until here, it is almost ok. The problem is when I want to program my MCU either using the ''STVD > Tools > Programmer'' or using STVP. I always get the same error message : Programming... OPTION BYTE: > Programming Error : Cannot communicate with the device ! Check the SWIM cable connection and check all the needed pin connections on the SWIM connector. If the application code uses Swim Disable and Reset pin as Output or has disabled SWIM Clock Divider: Try Now to SWITCH OFF and ON the application Power Supply while NRST Reset pin is forced low. I don't understand why I get this error. My hardware connection and the SWIM communication are OK because they work in Debug mode !!! How can I solve this error ? Thanks in advance. #stvd #st-link #stvp |
|
相关推荐
1个回答
|
|
|
大家好,
我发现了错误。 RESET引脚的上拉电阻值实际上太低(500欧姆)。 然后RESET引脚始终处于高电平。 这解释了为什么程序不起作用,调试只能部分地处理一些“内存写入错误”或“连接超时”。 以上来自于谷歌翻译 以下为原文 Hi all, I have found the error. The value of the pull-up resistor of the RESET pin was really too low (50Ohm). Then the RESET pin was always at HIGH level. This explain why program does not work and debug only partially works with some ''memory write error'' or ''connection time out''. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1447 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1494 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3641 浏览 1 评论
3834 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2454 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
658浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
940浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
744浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 19:20 , Processed in 0.531444 second(s), Total 73, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2540