完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我一直试图得到一个ISR为PWMS工作,控制LED配置,并由于某些原因,我开始得到奇怪的错误(见附件)当我切换IRQ到CORE0,这阻止我编程我的PSoC6。这是虫子还是我漏掉了什么?谢谢您!
屏幕截图(268) 73.9 K 以上来自于百度翻译 以下为原文 I've been trying to get an ISR for PWMs working, to control LED configurations, and for some reason I started getting weird errors (see attached) as soon as I switched the IRQ to Core0 which prevent me from programming my PSoC6. Is this a bug or am I missing something? Thank you!
|
|
相关推荐
10个回答
|
|
|
请张贴您的代码,以便我们可以检查它。点击文件然后在CealTyWorksPuleSeWipe包上,并将zip文件附加到一个新的注释中。
以上来自于百度翻译 以下为原文 Please post your code so we can check it. Click on File then on Create_Work_Space_Bundle and attach the Zip file to a new comment. |
|
|
|
|
|
你能复制粘贴错误信息吗?图像没有显示错误。
当做, Meenakshi Sundaram R 以上来自于百度翻译 以下为原文 Can you copy paste the error message? The image does not show the error. Regards, Meenakshi Sundaram R |
|
|
|
|
|
因为你还没有发布你的程序,所以我用你使用的组件做了一个,得到了这个音符。在位置P6〔7〕中命名为CythCupSsSWSWJKLKYTTCK(0)的PIN防止特殊用途的使用:TCPWM(3)。
系统给出了这些信息。该引脚能够执行一些固定的特殊功能,但引脚不用于任何这些特殊目的。由于PIN不用于任何特殊目的,如果您锁定PIN放置,您将被阻止使用任何这些特殊功能在未来。 这就像您的错误,但我没有您的代码,所以我不能确定更多关于您的错误信息。 以上来自于百度翻译 以下为原文 Since you haven't posted your program I made one with the components you used and got this note. The pin named CY_CPUSS_SWJ_SWCLK_TCLK(0) at location P6[7] prevents usage of special purposes: TCPWM[3].line_compl. The system gave this information. The pin is able to perform some fixed special functions, yet the pin was not used for any of those special purposes. Since the pin is not used for any special purpose, if you lock the pin placement, you will be blocked from using any of those special features in the future. This is like your errors but I don't have your code so I can't determine any more information on your error. |
|
|
|
|
|
我已经走了,并附上我的项目。前面提到的错误是我所得到的确切错误,但我不明白,因为我没有使用这个PIN,我不知道为什么它弹出。也许看到我的代码会有帮助?
邮政编码 4.8兆字节 以上来自于百度翻译 以下为原文 I've gone ahead and attached my project. The error previously mentioned is the exact one that I am getting, but I do not understand since I did not use that pin and I don't know why it's popping up. Maybe seeing my code will help?
|
|
|
|
|
60user167 发表于 2018-9-25 17:44 我没有得到您的错误,但我得到了一个错误,这条线,nVixCutsPungIrrq(LimTimeRyrqQCF..InSrC);未定义。 除此之外,程序编译出了错误。你使用的是什么版本的Psoc Creator? 我使用的是PSoC Creator 4.2(4.2.0.64)。 以上来自于百度翻译 以下为原文 I didn't get your errors however I got an error with this line __NVIC_ClearPendingIRQ(LightTimer_IRQ_cfg.intrSrc); not defined. other than that the program compiled with out errors. What version of Psoc Creator are you using? I am using PSoC Creator 4.2 (4.2.0.641). |
|
|
|
|
60user167 发表于 2018-9-25 17:44 你好, 问题是“光控制C”文件的编译为CM0P和CM4都启用。因为您已经将“LimTimeRyIrq”映射到CM0+,所以对于CM4不生成ListMimeRyqQFCFG结构。因此,当IDE编译CM4代码时,您会看到结构未定义的错误。 为了编译一个特定内核的文件做如下操作 1。右键单击“工作区资源管理器”中的文件 2。选择“属性” 三。在出现的弹出窗口中,将“核心”和“处理器”字段设置为需要在编译期间包含的文件的值。例如,在您的情况下,需要将这些字段设置为“CORTEXM0P”,因为您试图访问的中断配置仅针对CM0P启用。 我希望这有帮助。 当做, Meenakshi Sundaram R 以上来自于百度翻译 以下为原文 Hello, The issue is compilation of "LightControl.c" file is enabled for both CM0p and CM4. Since you have mapped "LightTimer_IRQ" to CM0+ only, the LightTimer_IRQ_cfg structure is not generated for CM4. Hence you see the structure not defined error when the IDE compiles the code for CM4. In order to compile the file for a specific core do the below - 1. Right-click the file in the "Workspace explorer" 2. Select "Properties" 3. In the pop-up that appears, set the "Cores" and "Processors" field to the value you need the file to be included during compilation. For instance, in your case, you need to set these fields to "CortexM0p", as the interrupt config you are trying to access is enabled only for CM0p. I hope this helps. Regards, Meenakshi Sundaram R |
|
|
|
|
斯图尔特233 发表于 2018-9-25 18:09 我没有问题,他有当我拉开他的程序和编译我的系统上。我只是有一个问题与一个变量未定义。你也不点击程序正确的例子并没有为我工作。我做错什么了? 以上来自于百度翻译 以下为原文 I didn't have the issues he was having when I unzipped his program and compiled it on my system. I just got an issue with a variable not defined. Also Meenakshi your example of right clicking on the program didn't work for me. What was I doing wrong? |
|
|
|
|
蔡R2016 发表于 2018-9-25 18:15 我认为他也有同样的问题。不管他张贴的任何图片只显示了来自创建者的“信息”信息(而不是错误或警告信息)。 为了选择编译的核心,您需要右键单击如下所示的头文件/源文件,然后按照前面提到的步骤中的步骤进行操作。 以上来自于百度翻译 以下为原文 I think he also has the same issue. As whatever image he has posted shows only the 'info' messages from creator (and not error or warning messages). In order to select the core for compilation, you need to right-click the header/source file like shown below and then follow the steps I mentioned in the earlier step. |
|
|
|
|
斯图尔特233 发表于 2018-9-25 18:29 好的,我找到那个区域来选择处理器类型。然而,当我收到他的文件时,并没有显示他在开始时提到的错误。 以上来自于百度翻译 以下为原文 Okay I found that area to select the processor types.I is set to all. However when I received his file it didn't show the errors he was referring to at the start of the post. |
|
|
|
|
|
我现在看到,我所得到的“错误”只是注释,而阻止我编程设备的实际错误是与未被设置到CM0P核心的一对文件相关的错误。然而,这个项目仍然没有执行它应该做的事情,但是我会单独处理这个问题。谢谢大家,谢谢你们的耐心和帮助!
以上来自于百度翻译 以下为原文 I now see that the "errors" I was getting were only notes, and that the actual errors that prevented me from programming the device were the ones related to a couple files not being set to the CM0p core. However, the program is still not performing what it is supposed to do, but I will make a separate post addressing that issue. Thank you, everyone, for your patience and assistance! |
|
|
|
|
只有小组成员才能发言,加入小组>>
787个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7315 浏览 0 评论
2484 浏览 1 评论
2178 浏览 1 评论
4042 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2087 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7804浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6367浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
757浏览 2评论
729浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
8210浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 05:53 , Processed in 1.014147 second(s), Total 92, Slave 75 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2468