PSoC™ Creator & Designer Forum Discussions
Hi,
I'd like to be able to test for the number of GPIO/Ports supported.
However, you can't do this :
#ifdef PRT5DR
/* do something with Port5 */
#endif
because PRT5DR is declare as a BYTE variable and not a "#define".
Is there any way to determine dynamically (during compile time) what Pins/Ports are supported?
thanks,
Tom Moxon
Show LessHi, I did not see a section for other cypress software tools, so I will post here. Please move to the correct section if required. I am having issues with the Bridge Control Panel 1.2. I am using the software and miniprog3 to test a I2C slave.
Problem 1:
For a I2C transaction, the command for generating a restart (or no stop) is not working. For example, the below 2 transactions looks identical on the scope. #1 generates a stop between write-read transaction, which is working. But, #2 still generates the stop between write-read transaction, even though 'p' was not specified. I am not able to generate a 'no stop' or 'restart' condition using this tool.
1- S fe 00 p S ff x x x x p
2- S fe 00 S ff x x x x p
Problem 2:
Delay within transaction does not work properly. Command #1 will detect a false NAK from the slave during address phase even though it is ACKed.
1- S fe [DELAY=15] aa
2- S fe aa
Thanks for any help.
Show LessCypress is committed to publish excellent Application Notes. We have rewritten, improved and restructured a number of Application Notes. I will introduce several of these new and improved AppNotes here in the PSoC Designer Forum.
If you ever worked on a longer term project, software is like a gas, it will always fill every memory cell available. Once the space is full, new important requirements come in. Now it's time to either upgrade to a larger size memory or downsize the existing code. Although we at Cypress are happy to sell you a device with more memory but we also want to show you options how to reduce your code size. Be aware that minimized code size might also have an impact on portability of your design. For more details, I recommend to download and study the Application Note AN60486 - PSoC® 1 - Code Optimization of PSoC 1 Project when using ImageCraft Compiler
http://www.cypress.com/?rID=45644
The focus of the application note is on features specific to the ImageCraft compiler that can be modified to optimize code.
"Size does matter!"
Cheers, Robert
Show LessI've been working on a shared library of code for PSoC1/3/5 and needed to be able to reference
a shared respository of source code and include files that are located outside my project directory.
Solution description :
You have library of shared source code that you would like to re-use in several PSoC3/5 projects.
This library takes the form of :
C:/my_lib/include /* include (*.h) files */
C:/my_lib/src /* source (*.c) files
You would like these include file and source file to be part of several PSoC projects,
and what you want is a "shared source code library".
For each of the projects that wants to use the "shared source code library",
do the following :
1) Add the Search path to the include directory as described in my previous post :
"Adding additional include file search path (for include files outside your workspace)"
http://www.cypress.com/?app=forum&id=2492&rID=54106
2) From the "Workspace Explorer" pane, right click on "Source Files" catalog, and select the
"Add -> New folder" drop down menu entry, and rename it as "my_lib_src".
3) From the "Workspace Explorer" pane, select the "my_lib_src" folder that you just created.
Then right click and select the "Add -> Existing Item" drop down menu entry.
When the file selection dialog box open, navigate to your C:/my_lib/src folder
and select all the .c source files that you would like to add, and finish by clicking "Open".
The selected files will then be added to your project, but still reside in the source folder location.
You can then repeat that process in other projects that want to re-use those same source files.
best regards,
Tom Moxon
www.moxon.com
I've been working on a shared library of code for PSoC1/3/5 and needed to be able to reference
a shared respository of source code and include files that are located outside my project directory.
It took a little experimenting, but I did find a good solution, and will describe it below.
Solution description :
You have library of shared source code that you would like to re-use in several PSoC1 projects.
This library takes the form of :
C:/my_lib/include /* include (*.h) files */
C:/my_lib/src /* source (*.c) files
You would like these include file and source file to be part of several PSoC1 projects,
however, if you do a "Project -> Add File" in the PSoC Creator, it COPIES the files
to the local project directory, such that changes made in project are no longer reflected in
other projects. What you want is a "shared source code library".
For each of the projects that wants to use the "shared source code library",
do the following :
1) "Project -> Open local.mk for "YourProjectName" Project"
This will open a text edit window with a copy of that project's "local.mk" file.
2) Cut and paste the attached "local.mk" file into the text window,
and make whatever changes you need for your particular library path
and source file names.
3) "File -> Save All"
4) "Build -> Generate/Build 'YourProjectName' Project"
Now all of your include files will get included during compilation, and all of your source "C" files will get
compiled and built into your projects.
Best Regards,
Tom Moxon
www.moxon.com
Let me give it another shot. I asked the same question a while ago with onyl one response. That is indicating a "don't really care" but I could be wrong. That's why we decided to give it another go and ask for feedback in the community.
Within Cypress, we are talking about the "PSoC Platform" or the "PSoC Experience". Creator is very closely related to PSoC 3/5 while PSoC Designer is a sibling to PSoC 1.
Because these subjects, PSoC Creator and PSoC 3/5 are so closely related, we are discussing to merge the content of both forums and call it a PSoC 3 -- Hardware -- Software -- DevKits or similarly a PSoC 5 -- Hardware -- Software -- DevKits forum
Another point to consider is the number of posts in each forum. Combining the forums will result in a higher traffic forum with more information in one place. A user forum is a platform where users tell other users what their issues are and what experience they have. It is also a platform where peers are helping peers.
You feedback is appreciated your votes will have a strong impact on the decision.
The plan is to merge, if you disagree, now is a good time to tell us, if you agree, it is a good time too 🙂
Please post your opinion in this thread.
Cheers, Robert
Some possible answers:
- I would prefer to visit just 1 forum that addresses all my needs
- I would like to see these topics separated because ________
- Either one is fine with me
- Other: ________________________
Hi,
PSoC Designer do not look in workspace directory by default for files (Designer 5.0 SP2)
How to add a search path in a PSoC Designer project to include a relative directory?
I have C source files and H header files located two directories above. (Where *.app is located, in workspace directory ?)
Best Regards,
jmer
Show LessThe component Author Guide is the document that covers all the steps of creating an own component.
We have posted a series of short videos that describe how to
create a Verilog implementation of a component
import and copy your own component into a new project
There are many more helpful videos in the Cypress Video Library, check them out.
Have fun with PSoC
Robert
Show LessThere are two instances when PSoC Creator appears to be particularly slow. After reboot, starting Creator the first time takes about 5 times longer than starting it a second or third time before another reboot.
Changing something in the hardware configuration really increases the time for build.
When I do software changes only, loading and compiling is similar to other SW packages I tested in the past. Also other packages took longer when starting them for the first time after boot. Obviously there is some framework loaded once after restart.
The real difference between a build using Keil MDK versus Creator is after a hardware modification. If I just add a logic gate in the hardware, the build time becomes so much longer. To be fair, adding a logic gate or other programmable hardware is something I can’t do in Keil or AVRStudio or other IDEs.
Anything I can do to speed it up?
Show Less