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.
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.
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!
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.
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?
Yes the ex- import method did the trick, thanks!
I'm a PSoC beginner and using the FreeSocMini. My first project was to control a LED with a potmeter and PWM....
Now I'm trying to build my second project by controlling an I2C LCD with PCF8574 I/O and a rotary encoder. I will modify the standard I2C_LCD module so it will work with PCF8574 commands. But that is not easy.... I first have to understand how the modules are working and what happens when they are compiled within a project.