完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我为cy8ckit-062-ble评估板项目。我想要一个定时器产生中断运行,在43.2 kHz的M4核心。附加项目循环闪烁的红色LED在1赫兹一个简单但它挂(红色指示灯不闪烁,它也许停留在ISR)当我运行它的M0 +运行就好了。
我试图调试但是调试器坠毁。 附加项目 谁能看清哪里出了问题? 特德 mb_electronic_design.cywrk.archive02.zip 20.3兆字节 以上来自于百度翻译 以下为原文 I created a project for the CY8CKIT-062-BLE evaluation board. I want to get a timer running that generates interrupts at 43.2 kHz on the M4 core. The attached project has a simple main for loop that flashes the Red LED at 1 Hz but it hangs (the red LED does not blink so it's maybe stuck in the ISR) when I run it - the M0+ is running just fine. I tried to debug but the debugger crashed. Project attached Can anyone see what's wrong? Ted
|
|
相关推荐
3个回答
|
|
特德
这只是因为您没有清除定时器ISR中当前的活动中断。请在Time1IsR()开头添加以下行: Cyth-TCPWM*清除中断(Time1HHW,Time1nCNTnNUM,CYO-TCPWMIN IN ON-TC); 此外,在Time1IsR()中使用的指示LED不是硬接线在062个工具箱板上,而是可以使用ReDiLED(P0O3); SMIF函数报告生成错误,因此您需要使用参考SMIF代码示例或使用SMIF配置工具配置SMIF。 以上来自于百度翻译 以下为原文 Ted, It is just because you do not clear current active interrupt in timer ISR. Please add below line at beginning of Timer1_Isr(): Cy_TCPWM_ClearInterrupt(Timer1_HW, Timer1_CNT_NUM,CY_TCPWM_INT_ON_TC); In addition, the indicating LED used in Timer1_Isr() is not hard-wired on 062-kit board, you can use RED_LED (p0_3) instead; SMIF function reports building error, so you need configure the SMIF with referring SMIF code example or using SMIF configuration tool. |
|
|
|
shide87812 发表于 2018-8-18 06:46 我在TCPWM的PDL描述中找不到CythTCPWMLCultSuffTebug()API的引用。我错过了什么? 鲍勃 以上来自于百度翻译 以下为原文 I could not find a reference to Cy_TCPWM_ClearInterrupt() API in the PDL description for TCPWM. What am I missing? Bob |
|
|
|
shide87812 发表于 2018-8-18 06:46 非常感谢——这是个问题,我忘了是TimeR1导致了中断,我需要清除Time1中断标志,否则我将永远被困在ISR中——有一件事是我没有看到P7.7的高电平,但这是因为它没有连接到O。NEVPCB。 正如你所看到的,我还没有开始设置SMIF,但是我已经测试了另一个项目,它在同一个引脚上运行SMIF来与车载闪存芯片进行对话,并且它看起来很好(我没有编译错误)。 我设计了我的化妆,一个PCB的cy8ckit-062-ble板插入和p7.7有线驱动LED,外部电路板-现在我知道你是对的,我的信号实际上并没有走出J18引脚1为r87不是居住在062-ble板-我不想使用CApsense东西我将填充r87前进但这个文件,告诉我什么其他的引脚没有连接上的标题? 以上来自于百度翻译 以下为原文 Thanks so much - that was the issue, I was forgetting that it was Timer1 that was causing the interrupt and I needed to clear the Timer1 interrupt flag or I'd be stuck in the ISR forever - one thing that was throwing me was that I didn't see P7.7 going high but that was because it isn't connected on the eval PCB. As you can see, I haven't got into setting up the SMIF yet but I have tested another project that runs SMIF on the same pins to talk to the on-board flash memory chip and it seems to work fine (I get no compile errors). I have designed and am making up, a PCB that the CY8CKIT-062-BLE board plugs into and P7.7 is wired to drive an LED on that external PCB - now I see that you're right that my signal doesn't actually come out of J18 pin 1 as R87 isn't populated on the 062-BLE board - given I don't want to use the CAPSENSE stuff I will populate R87 and move on but where is the documentation that tells me what other pins are not connected on the headers? |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2106 浏览 1 评论
1853 浏览 1 评论
3672 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1788 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
575浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
428浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
439浏览 2评论
389浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
921浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 15:08 , Processed in 1.565989 second(s), Total 81, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号