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 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Connected Cloud Challenge
  • Challenges & Projects
  • Design Challenges
  • Connected Cloud Challenge
  • More
  • Cancel
Connected Cloud Challenge
Blog Getting Started with Cypress PSoC®︎ 6 WiFi-BT Pioneer Kit - #1
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: weiwei2
  • Date Created: 11 Apr 2020 9:00 PM Date Created
  • Views 882 views
  • Likes 2 likes
  • Comments 0 comments
  • cypress psoc 6
Related
Recommended

Getting Started with Cypress PSoC®︎ 6 WiFi-BT Pioneer Kit - #1

weiwei2
weiwei2
11 Apr 2020

Details about this contest is at Connected Cloud Challenge with Cypress and AWS IoT and it contains useful information and technical resources link.

for convenience, i also copy and paste some of these urls at the references section of this blog

It is a hot sunny day and under MCO, i find some time to learn about the kit.

 

Software Installation

Modus can be installed from https://www.cypress.com/products/modustoolbox-software-environment

It has packaged solution to connect to

  • Arm Pelion Cloud Management and Mbed OS
  • Amazon Web Services (AWS) IoT and FreeRTOS SDK
  • Cypress AnyCloud IoT

I am using AWS in this case.

 

i downloaded IDE  2.1 and during installation i change the default installation directory to e:

as my c drive is becoming crowded.

image

Modus names itself with short name mtw. its default workspace name is one with mtw, that i follow.

 

Unboxing and Running Pre-programmed Demo

The kit comes with a handy and useful printed quick start guide. It contains a pre programmed code example

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image
image

However, it is using Cypress WICED Studio, which contains its own WICED api and SDK. I think my development mostly will skip that as it seems lacking example with Amazon AWS.

 

i did a firmware update with the modus IDE installed firmware loader. Latest firmware is at here though i only use the version that comes with Modus IDE

image

 

Development with Modus IDE

Firstly, i read through hardware user guide,

Hardware:

  • PSoCRegistered 6 WiFi-BT Pioneer Kit (CY8CKIT-062-WIFI-BT) User Guide
  • PSoCRegistered 6 WiFi-BT Prototyping Kit (CY8CPROTO-062-4343W) User Guide

then i follow one of the example https://github.com/cypresssemiconductorco/afr-example-weather-station.

The downside is that it is using a shield that i don't have https://www.cypress.com/file/428471/download  but it still makes  a good reference

in the example, PSoC 6 WiFi-BT pioneer kit communicates to the sensors via I2C and i want to doimage

similar connectivity. In addition, it shows connectivity to OLED display

 

TFT Display Shield Board CY8CKIT-028-TFT

Documentation : https://www.cypress.com/documentation/development-kitsboards/tft-display-shield-board-cy8ckit-028-tft

this is the shield that comes with the pioneer kit. It has its own example at this url

 

Amazon FreeRTOS

clone it with this release

https://github.com/cypresssemiconductorco/amazon-freertos/releases/tag/201910-MTBAFR1951

eg. git clone --recurse-submodules https://github.com/cypresssemiconductorco/amazon-freertos.git --branch 201910-MTBAFR1951

image

what does 'detached head' state means? >>> look at this https://www.git-tower.com/learn/git/faq/detached-head-when-checkout-commit

 

we then need to set permission on Amazon, and adding these two permissions to the user

image

ignore the instruction on AWS documentation that we can follow the Quick Connect workflow in the FreeRTOS consolehttps://console.aws.amazon.com/freertos to quickly connect your board to the AWS Cloud.

we will only use the FreeRTOS provided by Cypress

we use https://docs.aws.amazon.com/freertos/latest/userguide/get-started-freertos-thing.html  to register our board

(note: as part of this, we need the aws cli, https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html )

image

i copy this figure from https://docs.aws.amazon.com/iot/latest/developerguide/create-device-certificate.html

but i only downloaded the certificate, the public and private key. i not successful download the root CA for AWS IoT

however, i find myself without the need to use the root CA for AWS IoT

 

after registration, remember to edit the aws_clientcredential.keys.h files following this instruction

here is screenshot how to set the key

image

where we set the endpoint  ,the thing , the wifi credential as well as connection type

 

Special Note on my machine: i do encounter a build error on Modus as it can't find some tool at its default c drive. i got to manually fix it by pointing to my install directory

in the makefile

image

also, start.mk has to be modified as it cannot handle white spaces

image

 

Then, we build and download the code, by clicking aws_demos Program (KitProg3) in the quick panel

image

Figure sreenshot during programming

 

image

Figure screenshot after programming.

 

from here we can click the resume button on toolbar, and on putty terminal we will see its response

image

 

 

References

Connected Cloud Challenge with Cypress and AWS IoT  - contest page

 

Remember that we have technical community forums for each where you can get help from Cypress applications engineers – please see below!

  • ModusToolbox Software Environment (Download available on this page for WindowsRegistered, macOSRegistered, and LinuxRegistered)
  • All ModusToolbox Software Environment Documentation

Mbed OS SDK Resources: Arm Mbed OS is a free, open-source embedded operating system designed specifically for the "things" in the Internet of Things. It includes all the features you need to develop a connected product based on an Arm Cortex-M microcontroller, including security, connectivity, an RTOS, and drivers for sensors and I/O devices. Resources for Cypress’ Mbed OS SDK are below:

  • Cypress Mbed OS Community Technical Forum (Get answers to your questions here from Cypress applications engineers in 24 – 48 hours!)
  • Cypress Mbed Homepage
  • Cypress Mbed OS Example Projects
  • PSoCRegistered 6 WiFi-BT Pioneer Kit (CY8CKIT-062-WIFI-BT) Mbed Landing Page
  • PSoCRegistered 6 WiFi-BT Prototyping Kit (CY8CPROTO-062-4343W) Mbed Landing Page
  • Using ModusToolbox Configurator Tools in Mbed OS Applications Knowledge Base Article
  • Cypress Firmware Deliverables in Mbed OS Knowledge Base Article
  • Adding AWS IoT Thing Parameters Knowledge Base Article
  • Troubleshooting PyOCD Issues Knowledge Base Article

AmazonFreeRTOS SDK Resources: Amazon FreeRTOS is an open source operating system that extends the popular FreeRTOS kernel with software libraries that make it easy to connect IoT devices to AWS cloud services like AWS IoT Core. Resources for Cypress’ Amazon FreeRTOS SDK are below:

  • Cypress Amazon FreeRTOS Community Technical Forum (Get answers to your questions here from Cypress applications engineers in 24 – 48 hours!)
  • Cypress Amazon FreeRTOS Qualified Hardware Page
  • Cypress Amazon FreeRTOS PSoCRegistered 6 + Wi-Fi/BT Dev Kit Getting Started Guide
  • Cypress Amazon FreeRTOS SDK Repository
  • Cypress Amazon FreeRTOS Example Projects
  • Running Amazon FreeRTOS Code Examples Knowledge Base Article

AWS IoT Resources

  • AWS IoT Homepage
  • AWS Knowledge Center
  • AWS Knowledge Center Videos
  • AWS Documentation
  • AWS Developer Forums
  • AWS Training and Certification

 

getting started with Amazon freertos

https://community.cypress.com/docs/DOC-18348

  • 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