You are here

PSoC Creator News and Information | Cypress Semiconductor

2017 年 7 月 21 日

Alan Hawse talks about FreeRTOS and PSoC

Our resident IOT Expert, Alan Hawse, has been blogging about PSoC and FreeRTOS for a few weeks now.He has built up quite the collection of articles on the subject and I thought some of you might want to take a look.He has some excellent information about using an RTOS as well as some tips on PSoC- and FreeRTOS-specific stuff.He also talks about a couple of things that most RTOS discussions gloss over, namely...

  • How to use tasks and OS resources to interface to real-world sensors
  • What is the best beer* to enjoy for optimal programming effectiveness?

Here is a handy list of links to the articles in chronological order.

FreeRTOS:A PSoC 4 FreeRTOS Port

PSoC 4 Boot Sequence (Part 1) - Debugging to the Reset Vector

FreeRTOS PSoC Examples (Part 1)

PSoC FreeRTOS Queue Example

PSoC 6 FreeRTOS - The First Example

PSoC FreeRTOS Binary Semaphore

PSoC FreeRTOS Binary Semaphore (Part 2)

PSoC FreeRTOS Counting Semaphore

PSoC FreeRTOS Sharing the I2C Bus

PSoC FreeRTOS & Kionix KXTJ2 Accelerometer

PSoC Creator Projects

Percepio Tracealyzer & PSoC 4200M

I hope you find them interesting.Alan is writing more stuff all the time so I recommend subscribing to his blog.I'll try to re-post PSoC-focused articles here as well.

* if you ever find yourself in Lexington, try the West 6th IPA.If you need directions to the brewery then you probably don't deserve the beer anyway!

2017 年 7 月 13 日

Software Development Models for PSoC 6

[re-printed from Cypress Developer Community - to learn more about PSoC 6 join the Cypress PSoC 6 EAP Community]


In Software Enablement for PSoC 6 – What to Expect I talked about what the Peripheral Driver Library (PDL) is.In PDL 3.0 – Designed for Flexibility I described the high-level design that supports multiple peripherals working on either core and operating on multiple data streams.You can use the PDL to take advantage of the power inherent in the PSoC 6 family, while simplifying software development.

There is an entirely different level of flexibility, and that's your choice of development tools.Until you get your hands on the PDL 3.0, this remains theoretical.But you’ll have some choices.

First, a tiny bit of background on the Cypress development tools.Then we’ll get back to PSoC 6.

Cypress provides PSoC Creator, an integrated design environment.If you aren’t familiar with PSoC Creator, let me describe it briefly.It enables the concurrent design of both the hardware system and the associated firmware.You drag components into a design, configure them and (when necessary) wire them together.You use a friendly UI to manage component configuration, pin assignments, system clocks, and interrupts.PSoC Creator is an expert system, and analyzes your design for conflicts or potential problems.Based on your design, PSoC Creator generates configuration and initialization code that you can use when writing the firmware.It supports iterative development – change the design, the generated code changes to match.PSoC Creator is free.It runs on the Windows OS.

PSoC Creator is a really good tool, and I thought that long before I joined the Cypress team.I have worked with code generators in one form or another for years, and I really like them.However, a fundamental principle that I subscribe to is, “your mileage may vary.”As much as I like PSoC Creator, you may not.We’re all about enablement, not about limits, and that includes your choice of IDE.This flexibility is designed into the PDL.We won’t make you change IDEs.

At a high level there are three paths you can take when you develop code using the PDL for PSoC 6.

Use PSoC Creator from beginning to end.

Use it for the system design, and as a development environment for your software.It includes a compiler and linker, a programmer to download the executable to the platform, and a debugger.It has all the features you would expect to find in a good IDE, like code browsing.

Use PSoC Creator generated code in your preferred IDE.

There are a couple of ways to do this.For supported IDEs (IAR Embedded Workbench and Keil µVision tools are on the list), PSoC Creator has defined an export/import process for project files.For any IDE, even if not “officially” supported, you can add PSoC Creator generated source files to the project file in your preferred IDE.

Use your preferred IDE from beginning to end.

While PSoC Creator can handle a lot of the system configuration for you (like clocks, setting up interrupts, and so forth), you absolutely can do this yourself.The PDL is, after all, a source code library.Just use the files you need.For example, the PDL includes code to manage the system and peripheral clocks.When PSoC Creator generates code to do this, it uses the PDL function API to get the work done.You can use the PDL source code directly, rather than the generated code.

When you use a third-party IDE from beginning to end, you lose access to only one PSoC feature.PSoC 6 devices have universal digital blocks (UDBs).A UDB contains programmable logic devices that enable you to build logic at the hardware level that links other hardware in your design, or to create a stand-alone block that performs a new function.If you want to develop a UDB, you must use PSoC Creator.

Of course, in the “real” world things can be a lot fuzzier.These three paths are real, but you can also find your personal sweet spot among these choices.For example perhaps you prefer to use snippets of code from the generated source files rather than complete files (a complex configuration structure perhaps).Or you like the PDL driver for one peripheral, but intend to create your own for another peripheral because of your unique requirements.

All of this is possible.The PDL is an enablement tool.You get all the source code.You can use it as you see fit.

Finally, you should be aware that choosing to use PSoC Creator components in your design presents some interesting benefits, and tradeoffs.I talk about that in a separate post, PSoC 6 Components and PDL Drivers.

2017 年 7 月 07 日

PSoC Creator 4.1 - Pre- and Post-Build Commands

I think this has to be one of the most frequently-requested enhancements to the product and I am really pleased that we have it in the tool.You can now automate the execution of your own commands before and after building a PSoC or FM0+project. Here is the Project->Build Settings dialog where you can set up the commands.Just add the commands here and the build system will reliably automate everything for you.

Project->Build Settings dialog showing the User Commands page, where you can enter commands to be executed before and after the build
You can run source file checkers like lint or MISRA tools before running the compiler.You can automate data conversion on output files or run a bootloader host utility once the build is complete.It's all up to you!In my example I am calling a (fictitious) bootloader utility that downloads the project file through a serial COM port. The options are unlimited - what will you do?

2017 年 6 月 30 日

PSoC Creator 4.1 - New Start Page

A few months ago a colleague in our web team told us that the PSoC Creator News and Information was one of the most frequently accessed pages on Being the humble folk that we are... we were quite surprised.Then we became insufferably smug because, it turns out, we were never really as humble as we thought.Oh well!

New Start Page in PSoC Creator 4.1

So we took a closer look at the page.It became immediately obvious that, while the blogs section is working well (when we remember to write to it), there is a ridiculously long  list of content down the left hand side that no-one is using.We had a "cannot see the wood for the trees" problem!Almost all of the content is readily found on, so we trimmed out all those links and made a far more streamlined interface.

The new page is far cleaner than before.There are just three sections.Under Learn you will find the News and Information (default view), plus a couple of new pages talking about new features in the latest release and some information to help new users get started with the product.In the Start section you can quickly create or open projects.And the Recent section lists your most-recently used projects so you don't forget where you saved them.

We think it's a nice improvement.But we already know that we are not exactly humble about these things.What do you think?We always welcome feedback and opinion via so drop us a line.


2017 年 6 月 27 日

PSoC Creator 4.1 - Web Content Delivery

By now I am sure that many of you have downloaded and installed PSoC Creator 4.1 and are finding out about all the new features.I have already heard some compliments about the reduced size of the download file and the speedy installation.That's much appreciated. The reason for the improvement here is that we implemented a web content delivery system and, as a result, reduced the number of files that we need to include and install.You can now get new Code Examples, Components and even support for new devices in a matter of seconds (and without waiting for us to make a new release of PSoC Creator).

For all Components, we still ship the latest versions so the projects you have made in PSoC Creator 4.0 will still open and build without having to fetch new component versions.If you have projects from older releases though, just click "Find New Components" in the main Tools menu and select the component versions you need.Here is a picture showing how to download a version of the Component.

Downloading Component Versions with Web Content Delivery

Experienced users will know about the Component Pack releases we used to make.They have now been replaced by Web Content Delivery and so we can distribute them to you as soon as they are ready without making a software release.

Web Content Delivery also supports Code Examples and the interface for that is even simpler.When you open the Code Example Finder dialog all the web-hosted content has a "globe" icon next to it.Just click on the icon and the project is downloaded in no time.In this picture I am downloading the ADC_DMA_VDAC Code Example - I had to be quick with the screenshot tool because the whole process completes in about a second!

Downloading a Code Example with Web Content Delivery

I hope you are doing well with PSoC Creator 4.1 and enjoy the new features.I'll post some more new feature articles later in the week.


このサイトに掲示されているすべてのコンテンツと資料は、「そのままの状態」で提供されます。サイプレス セミコンダクタとその関連サプライヤは、これらの資料について、いかなる目的への適合性をも表明することはありません。また、これらの資料について、すべての保証や条件を放棄します。これには、暗示的な保証および条件、商用性、特定の目的への適合性、すべてのサードパーティの知的財産権に対する権利と非侵害などが含まれますが、これらに制限されることはありません。サイプレス セミコンダクタにより、明示または暗示にかかわらず、禁反言などによるライセンスは、付与されないものとします。このサイトに掲示されている情報の使用には、サードパーティまたはサイプレス セミコンダクタからのライセンスが必要となる場合があります。

このサイトのコンテンツには、特定のガイドラインや使用制限が含まれている場合があります。このサイトにおけるすべての掲示やコンテンツの使用は、サイトの利用規約に準じて行われるものとします。このコンテンツを使用するサードパーティは、制限やガイドラインに従い、このサイトの利用規約を遵守するものとします。サイプレス セミコンダクタとそのサプライヤは、コンテンツや資料、その製品、プログラム、サービスに対し、いつでも修正、削除、変更、改善、向上、その他の変更を加える権利を有します。また、いかなるコンテンツ、製品、プログラム、サービスを予告なく変更または閉鎖する権利を有します。