完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨...
我正在使用STM8S系列控制器。 我也使用SPI总线与外设进行通信。(根据我的要求,SPI需要正常运行。) 在运行期间,最初STM8S正常工作但...... 我检查一下STM8S的这个引脚...... SPI CLOCK =停止(无时钟) 任何一个人在过去面对这种类型的问题,那么请帮助我..... 这种“悬挂STM8”问题背后的原因是什么? 如何解决这个问题呢 ? 谢谢&问候, Hardip Limbasiya 以上来自于谷歌翻译 以下为原文 Hi... I am using STM8S family controller. I am also using SPI Bus to communicate with Peripheral.(As per my requirement SPI need to run properly.) During Run time, initially STM8S work properly but ... I check this pin of STM8S... SPI CLOCK = STOP (no clock) Any one face this type of problem of Hang in past, then please help me..... What is reason behind this type of issue of ''Hanging of STM8'' ? How to solve this problem ? Thanks & Regards, Hardip Limbasiya |
|
相关推荐
4个回答
|
|
嗨,Hardip,
我认为SPI通信是无限期运行的,只是一种方式?外围设备是否按预期工作? 当你说SPI挂起意味着STM8已重置或仍然在做什么? 伊恩 以上来自于谷歌翻译 以下为原文 Hi Hardip, I presume the SPI communication is to run indefinitely and is only one way? Is the peripheral working as expected? When you say the SPI hangs does that mean the STM8 has reset or still doing something? Ian |
|
|
|
嗨,伊恩,
在SPI总线中,我正在发送&接收10字节的数据包。 SPI Use =>双向(一次只有一种方式(发送/接收)使用中断)。 SPI时钟=>没信号 但是当我将时钟配置到MCU中的CLK_CCO引脚时。它会显示时钟正在运行。 那为什么SPI时钟不工作? 最初正常工作然后它会挂起。 外部(导线)当我将复位连接到GND ==> (重置=低), 当我 断开复位到GND ==> (重置= HIGH), 它不会重置电路。 SPI时钟仍无法正常工作。 电源复位后...最初工作然后再次挂起。 谢谢 Hardip 以上来自于谷歌翻译 以下为原文 Hi Ian, In SPI Bus, I am sending & receiving 10 bytes Packet. SPI Use => Two Way (At a time only one way(send/receive) using interrupt). SPI clock => No signal But when I configured clock to CLK_CCO pin in MCU. it will show clock is running. then why SPI clock is not working ? Initially proper working then it will hang. Externally(wires) When I connect Reset to GND ==> ( Reset = LOW) , When I disconnect Reset to GND ==> ( Reset = HIGH) , It will not reset circuit. SPI Clock still not working. After Power reset...initially work then again hang. Thanks Hardip |
|
|
|
嗨,Hardip,
感谢您的信息。 复位引脚的影响取决于您是将其配置为I / O还是复位引脚,然后与上电复位相比,这种性质的复位会发生什么。 CLK_CCO引脚将输出所选择的时钟,但它不会指示mcu正在做什么,只是时钟运行正常。 我怀疑你需要通过调试器或者通过RS232输出在SPI代码中进行一些额外的调试。也许您需要输出/查看当前发送/接收的字节/数据包,或者在SPI代码中使用递增变量来计算数据包等。 希望这可以帮助。 伊恩 以上来自于谷歌翻译 以下为原文 Hi Hardip, Thanks for the information. The effect of the reset pin will depend on if you have it configured as an I/O or reset pin and then what happens by a reset of this nature compared to a power on reset. The CLK_CCO pin will output the chosen clock but it won't indicate what the mcu is doing, just that the clock is running ok. I suspect you need some extra debugging in your SPI code either via the debugger or perhaps via RS232 output. Maybe you need to output/view the current byte/packet sent/received or use an incrementing variable in your SPI code to count the packets etc. etc. Hope this helps. Ian |
|
|
|
嗨,伊恩,
感谢您的快速帮助。 我正在尝试更多的调试步骤,让你知道。 谢谢, Hardip 以上来自于谷歌翻译 以下为原文 Hi Ian, Thanks for the quick help. I am trying with few more debugging steps and let you know. Thanks, Hardip |
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
914 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
974 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3130 浏览 1 评论
3403 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1996 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
151浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
169浏览 5评论
190浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
217浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
170浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-7-4 06:29 , Processed in 0.660464 second(s), Total 81, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191