完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我刚刚开始制作我的第一个PSoC组件,我对一些事情有点困惑。我做了一个部分的示意图,但我不知道如何访问我在我的示意图中放置的硬件。
例如,我在我的示意图中包括了五个数字输出引脚。如何访问API文件中的这些引脚?在项目中使用组件时,您可以生成应用程序,然后您可以使用这些组件自动生成的API访问硬件,但是当我试图为组件中的示意图生成应用程序时,PIN的API文件似乎没有被制作出来。 我已经阅读了组件作者指南,但我找不到这个信息。 我确信答案很简单,但我就是想不出来该怎么做! 我现在正在使用PSoC Creator 2.2。 谢谢您! 以上来自于百度翻译 以下为原文 I just started working on making my first PSoC component, and I am a little bit confused about something. I did a schematic of the part, but I'm not sure how to access the hardware that I put in my schematic. For example, I included five digital output pins in my schematic. How do I access those pins in my API files? When using components in a project you generate the application, and then you can use that components autogenerated API to access the hardware, but when I try to generate an application for the schematic in my component the API files for the pins don't seem to be made? I've read through the component author guide, but I can't find this information. I'm sure the answer is super simple, but I just can't think of how to do it! I am using PSoC Creator 2.2 at the moment. Thank you! |
|
相关推荐
7个回答
|
|
另外,您可以阅读文档CyPress。COM/我的经验,使用IO引脚创建组件。
鲍勃 以上来自于百度翻译 以下为原文 Additionally you may read the documentation at www.cypress.com/ on my experienced to create a component using IO-pins Bob |
|
|
|
好的,我已经把所有这些都弄清楚了。谢谢您!(这个PDF也是非常有用的:介绍%20%到%20API %20代.pdf)
现在我已经准备好要测试的组件了,但是我找不到它!在项目中,我想使用它,我看不到组件目录的“默认”部分,因此我不能将它添加到示意图中。 我必须设法把这个组件添加到我的项目中吗? 该部件用于控制步进电机。我把它附在下面。 步进V1Y0.ZIP 25.4 K 以上来自于百度翻译 以下为原文 Okay, so I've been able to figure all of that out. Thank you! (This PDF was also very useful: intro%20to%20API%20Generation.pdf) Now I have my component ready to test, but I can't find it! In the project I want to use it in I can't see a "Default" section of the component catalog, so I can't add it to the schematic. Do I have to add the component to my project somehow? The component is for controlling stepper motors. I attached it below.
|
|
|
|
也许你的组件结构是错误的,我的导入组件在默认的标签BTW中显示,下次你会上传,作为一个完整的捆绑项目上传。谢谢你
COMP1.JPG 86.7 K 以上来自于百度翻译 以下为原文 Maybe your component structure was wrong My imported component was shown in default tab BTW, next time you would upload, be upload as a whole bundle project. Thank you
|
|
|
|
好的,看起来我把组件库作为一个单独的项目在同一个工作空间中,而不是在我想要使用的项目中打开。谢谢你的照片!我不会用它来解决的!
以上来自于百度翻译 以下为原文 Okay, it looks like I had the component library in open as a seperate project in the same workspace, instead of open in the project I wanted to use it in. Thank you for the picture! I wouldn't have figured it out with it! |
|
|
|
是的,我知道。
我仍然有一些奇怪的问题。这是一个我一直在为PSoC 4编译的测试项目。我已经改写了很多组件API来纠正我犯的一些错误,从PIN变为寄存器。但是每当我尝试编译时,我会得到一个错误,就是“命令”ARME EABI GCC .exe在退出代码“1”失败。 对它为什么这样做有什么想法?没有其他警告或错误。 步骤: 638.3 K 以上来自于百度翻译 以下为原文 Yeah, I know. I am still getting some weird issues. Here is a test project that I have been trying to compile for PSoC 4. I have rewritten a lot of the component APIs to correct some mistakes that I made, and changed from pins to registers. But whenever I try to compile I get one error, and it is that "The command 'arm-none-eabi-gcc.exe' failed with exit code '1'." Any ideas on why it is doing this? There are no other warnings or errors given.
|
|
|
|
你好,
我对这个问题也有疑问。 我已经为改进的柏树部件做了一个单独的工作空间。在这个工作空间中,我在组件项目中看到默认的选项卡(根据这个案例的视频)。到现在为止,一直都还不错。 但是,当我在另一个工作区做了一个新的项目,并且想要使用MODE组件时,我没有看到默认的选项卡。 我做错什么了?请解释我必须如何切割我的创造者看到我自己(修改)模块在每一个新的项目? 谢谢! 抢劫 以上来自于百度翻译 以下为原文 Hi, I also have a question about this issue. I have made a seperate workspace for modified Cypress components. In that workspace I see at the component project the Default tab (according the video about this case) withe the modfied component. So far so good. But when I made a new project in an other workspace and want to use the modfied component, I don't see the Default tab. What I'm doing wrong? Please explain how I have to cutomize my creater to see my own (modified) modules in every new project? Thanks! Rob |
|
|
|
Hi RoBoto48我知道其中一种方式,导出你的组件,所以制作一个COMP**文件并从你的新设计中导入它。我不确定最好的办法,但这是可行的。在PSoC1的情况下,可以指定方便的组件的文件夹,但我不知道创建者周围。
以上来自于百度翻译 以下为原文 Hi Roberto48 I know one of the way, Export your component, so make a comp** file And Import it from your new design. I'm not sure the best way but this doable. In the case of PSoC1, Can designate the folder for components that is handy, but I don't know around Creator. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2105 浏览 1 评论
1851 浏览 1 评论
3669 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
570浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
423浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
384浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 04:09 , Processed in 1.129107 second(s), Total 88, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号