完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
我遵循PSoC 5LP PDF文件开始,并使用代码,但它显示了两个错误,我附上代码和错误信息如下。这意味着什么?
13JPG 293.6 K 以上来自于百度翻译 以下为原文 I follow the Getting Started with PSoC 5LP PDF file, and use the code from that, but it shows two errors, I have attached the code and error information below. What does that mean?
|
|
相关推荐
10个回答
|
|
你有一个警告,而不是错误。当你把鼠标光标的警告标志的文本将被显示的原因。
再次:因为我不熟悉所有不同的例子(不想猜,您正在使用哪一个)请把完整的项目在这里。这样做,使用的创造者- >;文件& gt;创建工作包(最小的)并将生成的文件(不要使用Chrome,仍可能不工作)。 所以我可以很容易地打开您的项目并编译看不出差错。 鲍勃 以上来自于百度翻译 以下为原文 You have got a warning, not an error. When you put the mouse cursor over the warning sign a text will be displayed to show the cause. Again: Since I am not familar with all the different examples (and do not want to guess, which one you are using) please post the complete project here. To do so, use Creator->File->Create Workspace Bundle (minimal) and attach the resulting file (do NOT use chrome, that still may not work). So I can easily open your project and compile to see what does go amiss. Bob |
|
|
|
你好,鲍伯。谢谢,我把它贴在这里。
MyuFielStay.CyWrk.CaseVo.01.Zip 471.2 K 以上来自于百度翻译 以下为原文 Hi Bob. thanks, I attach it here. |
|
|
|
第一个错误消息意味着你的代码引用的函数不存在。第二只其中有其他错误,因此编译不成功。
检查您的参考组件的确是叫“滴答”,有一种方法被称为“read_status”。我猜“滴答”是一个计时器组件的方法有被称为“readstatusregister”。 以上来自于百度翻译 以下为原文 The first error message means that your code references a function that does not exists. The second just staes that there were other errors and therefore the compilation did not succeed. Check that the component you are referenceing is indeed called 'Tick', and has a method called 'Read_Status'. I guess 'Tick' is a timer component - the method there is called 'ReadStatusRegister'. |
|
|
|
HLI是正确的,反叫“滴答”有法”tick_readstatusregister()”,你应该打电话。
提示:点击一个组件的右侧打开一个上下文菜单,你找到一个进入“打开表”,总是有原料药的上市。 另外,代码可能会引导你正确地拼写的名字。 鲍勃 以上来自于百度翻译 以下为原文 hli is right, the counter named "Tick" has a method "Tick_ReadStatusRegister()" which you should call. A tip: Right-clicking on a component opens a context-menu where you find an entry "Open Datasheet" which always has the APIs listed. Additionally the code-completion may guide you to spell all the names correctly. Bob |
|
|
|
|
|
|
|
你好。谢谢,但我仍然有疑问,LeD4不眨眼,但应该是。只有DEL3在闪烁。
MyuFielStay.CyWrk.CaseV011Zip 506.3 K 以上来自于百度翻译 以下为原文 Hi. Thanks, but I still have a doubt, LED4 is not blinking but it should be. Only LED3 is blinking. |
|
|
|
搜索和审查的例子你用(链接总是有帮助的)显示错误的原因是什么:
你没有给身份登记组件正确的名字“tick_status”。然后我们得到一个功能叫做“tick_status_read()”,将阅读的登记粘点。 所以重命名状况登记组件和回到最初的代码你复制从an77759。 顺便说一句:只因为文档宽度减少的行 Le44-写 分成两条线是正确的,但不寻常的C程序。 鲍勃 以上来自于百度翻译 以下为原文 Searching for and reviewing the example you used (a link is always helpful) shows what the cause of the error is: You did not give the status register component the right name "Tick_Status". Then we get a function named "Tick_Status_Read()" which will read the sticky bit of the register. So rename the status register component and go back to the initial code you copied from the AN77759. By the way: Only because the width of the document is reduced the line containing the LED4_Write is broken into two lines which is correct, but unusual for C programs. Bob |
|
|
|
|
|
|
|
PSoCs是多才多艺的,这意味着他们可能相当复杂。
其中一个缺点是用C语言编程困难,另一个可能是用外语阅读数据表。 所以一切都在一起,让生活变得更加简单。 但我可以向你保证:这不会花太多时间。因为你将逐步了解一点(或字节)更多关于你使用的这些新事物。继续前进! 快乐编码 鲍勃 以上来自于百度翻译 以下为原文 PSoCs are very versatile and that implies that they can be rather complicated. One drawback can be the difficulty to program in C-language, another can be reading datasheets in foreign languages. So all comes together making life not even easier. But I can assure you: It will not take much time. Because you will learn step-by-step a bit (or byte ) more about all these new things you use. Just keep on going! Happy coding Bob |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
715个成员聚集在这个小组
加入小组1901 浏览 1 评论
1652 浏览 1 评论
3405 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1568 浏览 6 评论
1380 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
180浏览 2评论
179浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
318浏览 2评论
344浏览 1评论
58浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-23 15:31 , Processed in 0.677325 second(s), Total 83, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号