element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Low Power IoT Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Low Power IoT Design Challenge
  • More
  • Cancel
Low Power IoT Design Challenge
Blog Non-Intrusive Load Monitoring #2 - Getting started with PSoC 6 MCU on ModusToolbox
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: taifur
  • Date Created: 25 Sep 2021 4:33 AM Date Created
  • Views 1305 views
  • Likes 1 like
  • Comments 0 comments
  • load monitoring
  • psoc™ 6s2 + airoc™ wi-fibluetooth pioneer kit
  • low power iot design challenge
  • iot
  • cypress modus toolbox 2.3
Related
Recommended

Non-Intrusive Load Monitoring #2 - Getting started with PSoC 6 MCU on ModusToolbox

taifur
taifur
25 Sep 2021

What is ModusToolbox?

ModusToolbox was built to make it easier and more efficient by removing development barriers and allowing the user to create real-time applications quickly. ModusToolboxTm is a set of tools and software that includes configuration tools, low-level drivers, middleware libraries, and operating system support, as well as other packages that enable you to create MCU and wireless applications. It also includes an Eclipse IDE, which is a multi-platform development environment that supports application configuration and development. ModusToolboxTm supports stand-alone device and middleware configurators that are fully integrated into the Eclipse IDE. ModusToolboxTm supports all PSoCTm 6 MCU devices. It is recommended that you use ModusToolboxTm for all application development for PSoCTm 6 MCUs. ModusToolboxTm leverages popular third-party ecosystems such as FreeRTOS and ArmRegistered Mbed, and adds specific features for Wi-Fi, BluetoothRegistered, CAPSENSETm , and security.

 

What is PSoCTm 6 MCU?

PSoCTm 6 MCU is an ultra-low-power PSoCTm device with a dual-CPU architecture tailored for smart homes, IoT gateways, etc. The PSoCTm 6 MCU device is a programmable embedded system-on-chip that integrates the following features on a single chip:

• Single-CPU microcontroller: ArmRegistered CortexRegistered-M4 (CM4); or dual-CPU microcontroller: ArmRegistered CortexRegistered-M4 (CM4) and CortexRegistered-M0+ (CM0+)

• Programmable analog and digital peripherals

• Up to 2 MB of flash and 1 MB of SRAM

• Fourth-generation CAPSENSETm technology

• PSoCTm 6 MCU is suitable for a variety of power-sensitive applications such as:

− Smart home sensors and controllers

− Smart home appliances

− Gaming controllers

− Sports, smartphone, and virtual reality (VR) accessories

− Industrial sensor nodes − Industrial logic controllers

− Advanced remote controllers

− Wearables

 

image

Fig 1: Application-level block diagram of PSoC 6 MCU

 

The PSoCTm 6S2 + AIROCTm Wi-Fi/Bluetooth Pioneer Kit (CY8CKIT-062S2-43012)

The PSoCRegistered 62S2 Wi-Fi BT Pioneer Kit (CY8CKIT-062S2-43012) is a low-cost hardware platform that enables the design and debug of the PSoC 62 MCU and the Murata 1LV Module (CYW43012 Wi-Fi + Bluetooth Combo Chip). The kit has the following features:

• Ultra-low-power PSoCTm 62 MCU that integrates an ArmRegistered CortexRegistered-M4 and Cortex-M0+ onto a single chip and provides up to 2 MB of Flash and 1 MB of SRAM

• The Murata 1LV Module hosting the ultra-pow-power Infineon AIROCTm CYW43012 802.11 b/g/n Wi-Fi + Dual-Mode Bluetooth combo chipset radio

• CapSense capacitive touch sensing enabled buttons and sliders

• PSoC 5LP MCU for program/debug

• ExcelonTm-Ultra 4Mbit 108-MHz QSPI nonvolatile F-RAM in an 8-SOIC package

 

image

Fig 2: PSoC 6S2 AIROCTm Wi-Fi/Bluetooth Pioneer Kit

 

The Hello World Program using PSoCTm 6S2 Kit

Before starting the application development purchase the kit from here and prepare yourself following the steps below:

  • Install the ModusToolbox from here: http://www.cypress.com/modustoolbox
  • For getting the details about the installation read the ModusToolbox Installation Guide: https://www.cypress.com/file/504351/download
  • To know the details about ModusToolbox read the ModusToolbox User Guide: https://www.cypress.com/file/520251/download
  • You can read the PSoC 6 MCU ModusToolbox getting started guide from here: https://www.cypress.com/file/495071/download
  • Download and install PuTTY serial monitor from here: https://www.putty.org/

Instead of PuTTY, you can also use other serial terminals like Tera Term (https://filehippo.com/download_tera_term/ ).

 

I hope you are ready with all the tools. Launch Eclipse IDE for ModusToolboxTm to get started. Please note that Eclipse IDE for ModusToolboxTm software needs access to the internet to successfully clone the starter application onto your machine.

 

1. Select your preferred workspace

At launch, Eclipse IDE for ModusToolboxTm presents a dialog to choose a directory for use as the workspace directory. The workspace directory is used to store workspace preferences and development artifacts. You can choose an existing empty directory by clicking the Browse button, as Figure 3 shows. Alternatively, you can type in a directory name to be used as the workspace directory along with the complete path, and Eclipse IDE will create the directory for you.

image

Fig 3: Choosing the workspace directory

 

2. Create a new ModusToolboxTm application

a) Click New Application in the Start group of the Quick Panel, as figure 4 shows.

b) Alternatively, you can choose File > New > ModusToolbox Application, as Figure 5 shows.

image

Fig 4: Creating a new application

 

image

Fig 5: Creating a new application from the file menu

 

The Eclipse IDE for ModusToolbox Application window appears as figure 6 shows.

image

Fig 6: Project Creator window

 

3. Select a target PSoCTm 6 development kit

ModusToolboxTm speeds up the development process by providing BSPs that set various workspace/project options for the specified development kit in the new application dialog.

a) In the Choose Board Support Package (BSP) dialog, choose the Kit Name. In our case it is CY8CKIT-062S2-43012. See Figure 7 for help with this step.

b) Click Next.

c) In the Starter Application dialog, select the Hello World application, as Figure 8 shows.

d) In the Name field, type in a name for the application, or you can choose to leave the default name if you prefer.

e) Click Create to create the application, as Figure 8 shows, wait for the Project Creator to automatically close once the project is successfully created. A welcome screen will appear as the figure 9 shows.

You have successfully created a new ModusToolboxTm application for a PSoCTm 6 MCU.

 

image

Fig 7: Choosing the Kit

 

image

Fig 8: Choosing sample application

 

image

Fig 9: Created hello world project

 

Now you can open the main.c from the project window and observe the code for our hello world application as shown in figure 10.

image

Fig 10: Sample hello world code

 

4. Build the Application

Click on the Build <<name>> Application shortcut under the Start group in the Quick Panel as shown in figure 11. It selects the Debug build configuration and compiles/links all projects that constitute the application. The Console view lists the results of the build operation, as Figure 12 shows.

 

image

Fig 11: Building hello world project

 

image

Fig 12: Build result in the console

 

 

5. Program the Device

ModusToolbox uses the OpenOCD protocol to program and debug applications on PSoC 6 MCU devices. For ModusToolbox to identify the device on the kit, the kit must be running KitProg3 and our board already has KitProg3. So no firmware update is required.

a) Connect to the board and perform the following step.

b) Select the Hello_World application project and click on the  Hello_World Program (KitProg3_MiniProg4) shortcut under the Launches group in the Quick Panel, as Figure 13 shows. The IDE will select and run the appropriate run configuration.

image

Fig 13: Programming the application to the device

 

image

Fig 14: Uploading console view

 

image

Fig 15: User LED8 will start blinking

 

6. Test Your Design

Follow the steps below to observe the output of your design. Note that the below steps use PuTTY as the UART terminal emulator to view the results. You can use any terminal of your choice to view the output.

a) Find the serial port: From your computer management console find the COM port number for the connected PSoC Kit. COM11 in my case is shown in figure 16.

image

Fig 16: Finding COM port number

 

b) Open PuTTY, select Serial, and set the COM port and baud rate as shown in figure 17. Then click on Open.

image

Fig 17: PuTTY Configuration

 

c) You will get the following output as shown in figure 18 from the PuTTY terminal. Press Enter to pause and resume the LED blinking.

 

image

Fig 18: Output from the PSoC Kit

 

If you get everything as expected then Well Done! You have successfully completed the Hello World project using PSoCTm 6S2 + AIROCTm Wi-Fi/Bluetooth Pioneer Kit.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube