PSoC Creator News and Information | Cypress
Watch our PSoC 101 video series. This series of video tutorials demonstrates how to use the Cypress PSoC® 4 family and associated development kits. Each lesson teaches you how to use a specific feature of the device.
The videos start with fundamental skills and then delve into more complex concepts.
These lessons can be reproduced on the PSoC Pioneer Kits: PSoC 4 (CY8CKIT-042), PSoC 4 BLE (CY8CKIT-042-BLE) or PSoC 4 M-Series (CY8CKIT-044) development systems. Projects for the entire PSoC 101 video series are grouped into a single download by development kit and are available from the links on the right.
Interested in doing some more sophisticated debugging of your PSoC 5LP design? Take a gander at Knowledge Base Article 90952. See the link below.
But this is not your father’s trace – which required expensive hardware and hours of set-up time – because the PSoC 5LP devices are built around the ARM® Cortex®-M3 processor core, which includes the full range of valuable CoreSightTM Trace features.
- Periodic PC Sampling for a coarse record of program flow
- Single pin diagnostic output (“printf-style”)
- CPU event capture for software profiling
- Timestamps of trace captures
- Exception/interrupt trace recording handler entry and exit
- Data memory trace
The easiest-to-use trace feature is Serial Wire Trace Output (SWO), which forwards the above trace data through a single pin. Most commercial debugger probes, such as ARM’s ULINK2, IAR’s iJet and the Segger J-LINK, support this interface and the Serial Wire Viewer (SWV) features are seamlessly integrated into the Keil μVision or IAR Embedded Workbench IDEs. SWO is a great way to get a better understanding of what your program is really doing because it exposes bottlenecks in the code, and helps you measure interrupt overhead.
If you need a little more detail, in particular streaming trace of executed instructions, you access the Embedded Trace Macrocell (ETM) through 1-to-4-Pin Synchronous Trace Output (TPIU) or the Embedded Trace Buffer (ETB). The former is a means of streaming the data off-chip through a more sophisticated debugger device such as the ARM ULINK-Pro, IAR iJet-TRACE and the Segger J-TRACE. The latter is an on-chip buffer for the trace data that allows post-execution access to the data through the SWD debug port rather TPIU pins. In addition to tracing every instruction and streaming it to your debugger, ETM enables run-time control of trace capture. This enables you to trigger the tracing on/off in specific sections of code, or on data accesses, to quickly home in on coding errors such as runaway pointers, bad memory accesses, and so on.
Whichever trace method you choose, it is a great way to augment your usual breakpoint and stepping debug "arsenal" and, with the CoreSight features included in all PSoC 5LP devices, it won’t take long to master the techniques and reduce your debugging time.
Many thanks to Mark Saunders (go Arsenal) for tackling the particularly tough bits in this post.
--Matt Landrum (firstname.lastname@example.org)
As you may already know, PSoC Creator 3.3 is available for download on the Cypress website (http://cypress.com/creator). There are some significant new features in this release including:
- A “Guided Pin Selection” feature for PSoC 4 devices which helps customers make optimal decisions when choosing what pins to assign each of their signals.
- A Resource Meter to showing a convenient graph showing the current utilization of the PSoC’s resources (IO, UDBs, Flash, SRAM, etc.) See the graphic on the right. After you build your project, open up the Resource Meter from the View menu in PSoC Creator (Alt-V-R).
- An enhanced Example Project Browser, which now finds kit projects, component examples, and starter designs.
- A new Project Wizard replaces the existing, error-prone New Project dialog with a multi-step wizard, enabling the use of code examples, kit projects, and templates as start-points for a new design.
- A new feature called Macro Callbacks allows users to call their own code from within the Cypress automatically generated code.
As usual, we’ve made many quality improvements and minor enhancements. I strongly encourage you to install PSoC Creator 3.3. You don’t even have to uninstall other versions of PSoC Creator to use this exciting new tool. You can find more information, including the complete Release Notes, on the PSoC Creator product page at http://cypress.com/creator.
I touched on the Resource Meter in this post. We’ll talk more about the other features in future posts.
Yours in PSoC,
--Matt Landrum (email@example.com)
On Friday last week our Seattle Cypress office welcomed a special guest Anthony Ray, aka Sir Mix-A-Lot, who came to check out some of our latest and greatest products. We did a short tour of our lab and office space to show him what our PSoC Makers do in the design center.
The demos included our well-loved “Fruitano,” a Bluetooth® low energy wireless and capacitive-sensing solution that plays musical notes over a wireless connection to a phone or tablet; a new USB Digital Audio solution with a “Keytar” and a PSoC powered MIDI controller; and a motor control solution using PSoC 4. PSoC’s programmability is what makes it unique and we love to share it will all of our makers! Of course, this was definitely a fun way for us to spend our Friday too.
We couldn’t help but show our fandom for him as well. Above is a photo of our team with Sir Mix-A-Lot and below is a board from our recent Maker Faire space that he was kind enough to sign.
Sir Mix-A-Lot was truly a wonderful guest and a techie after our own hearts. A special thanks to him for stopping by to check out our stomping grounds. We hope another visit is in our future!
When reading PSoC Creator survey responses, I often I see a comment like “I’m interested in beginning C training”. My background is in Computer Engineering with an emphasis on VLSI, so C is one of those things I’ve used for a while and don’t generally have cause to look for introductory material. Having said all that, I see many of my EE brethren (Mechanical Engineers too!) moving from the digital or analog circuit design world into the land of embedded systems programming. Additionally, if you’ve been writing code targeted for a desktop PC or Linux workstation, you’ll find a completely different animal when you need fit your code into 8Kb.
So, I asked around and compiled this small list of resources to get you started. I’m hoping to see some comments from people who have good (or bad) experiences with some I haven’t listened. Here’s my current list. Feel free to email me with your favorites (firstname.lastname@example.org or email@example.com).
http://www.learn-c.org/ - A free, interactive C tutorial (nothing to even download). There are some advanced sections as well.
A Beginner’s Guide and more is offered by Udemy here - https://blog.udemy.com/c-tutorial-learn-c-in-20-minutes/
http://www.cprogramming.com/ (C++ stuff here too)
C Programming for Embedded Microcontrollers by Warwick A. Smith (Basic C programming + ARM)
There are several books/classes listed here: How to Become an Embedded Systems Geek by The Embedded Muse.
Many universities, community colleges, and training organizations have live C courses, some even have C/embedded programming classes. For example, Embedded Software Bootcamp from the Barr Group.
I don’t recommend learning C just by looking at example code. However, looking at examples is very helpful for some. Almost all PSoC Creator components have an example to go with them. Just right click over the component. See the Screenshot below.
In PSoC Creator 3.3+, you can also browse all the example projects from the File->Code Example menu. See the screenshot below.
If you are interested in the 8051 specifically, you may want to check out Embedded C.
--Matt Landrum (firstname.lastname@example.org)
- 1 of 37
- next ›
ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.
Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.