完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨!
我已经使用这个发现板几周了,几乎接近完成我的第一个原型设计。但我总是需要手动重置MCU以使我的代码从闪存运行,我将5V直接给JP1的引脚2。在我删除SB1和SB2之后认为它可能没问题时,我忽略了这个问题。但是今天我看到,即使移除了这些,MCU也无法启动,我需要通过短接CN7的引脚3和4来手动复位。此外,根据STM8手册,外部仅需要0.1uF,因为该MCU具有内部POR和上拉电阻。但发现板只有10nF,我试过将其改为0.1uF,仍然没用。有人遇到这样的问题,请帮忙。我担心内部POR效果不佳。 谢谢&问候 #spi:use-spi_nss_soft-if-nss-open#discovery-cannot-boot#por-issue 以上来自于谷歌翻译 以下为原文 Hi! I have been working with this discovery board for several weeks now and almost close to finalizing my design for a first prototype. But I always need to manually reset the MCU for my code to run from flash, I give 5V directly to Pin 2 of JP1. I ignored this problem all this while thinking it may be OK after I remove the SB1 and SB2. But then today I see that even with those removed, the MCU does not boot and I need to reset manually by shorting pins 3 and 4 of CN7. Also, as per STM8 manual only a 0.1uF is required externally as this MCU has internal POR and pull-up. But the discovery board has a 10nF only, I tried changing this to 0.1uF, still no use. Anyone faced such issue, please help. I fear the internal POR is not working well. Thanks & Regards #spi:use-spi_nss_soft-if-nss-open #discovery-can't-boot #por-issue |
|
相关推荐
2个回答
|
|
你好
我发现MCU实际上是使用标准发现原理图启动的,因为我的PIO中断仍在工作。但似乎有些外围设备(芯片上或板上)被挂起并导致main()挂起。我怀疑UART块,bcos在这种情况下我无法接收任何数据。 苏德赫 以上来自于谷歌翻译 以下为原文 Hi I found that the MCU is actually booting with the standard discovery schematics, because my PIO interrupts are still working. But seems some of the peripherals (on chip or on board) are hung up and causing main() to hang. I am suspecting the UART block, bcos I cannot receive any data in this condition. Sudhir |
|
|
|
你好
我发现SPI给了我麻烦。发生MODF错误,导致SPI进入从机模式并禁用SPI模块。刚刚将SPI init参数从SPI_NSS_HARD更改为SPI_NSS_SOFT,它不再发生,从闪存启动工作正常。 STM8参考手册中的附注帮助我弄明白了。 仍然不知道为什么这个问题只发生在上电复位时,而不是在我使用手动复位时。 苏德赫 以上来自于谷歌翻译 以下为原文 Hi I figured out it was SPI giving me trouble. The MODF error was occurring which causes SPI to go into slave mode and to disable the SPI block. Just changed SPI init params from SPI_NSS_HARD to SPI_NSS_SOFT and it does not happen anymore and boot from flash works fine. Attached note from the STM8 reference manual helped me figure it out. Still don't know why this problem only happens on power-on-reset and not when I used manual reset. Sudhir |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
1431 浏览 1 评论
2099 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1509 浏览 1 评论
2818 浏览 6 评论
5227 浏览 21 评论
351浏览 4评论
526浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
276浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
596浏览 3评论
507浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-23 19:10 , Processed in 0.904920 second(s), Total 76, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号