Objective
This code example demonstrates the implementation of simple UART communication and LED control using PSoC
The UART and LED control tasks are executed by the Arm
Overview
This example uses the Cortex-M4 (CM4) CPU of PSoC 6 MCU to execute two tasks: UART communication and LED control.
At device reset the Cortex-M0+ (CM0+) CPU enables the CM4 CPU. The CM4 CPU uses UART Component to print a "Hello
World" message in a UART terminal emulator and when the Enter Key is pressed by the user, the LED on the PSoC 6 MCU
WiFi-BT Pioneer Kit starts blinking.
Requirements
Tool:
PSoC
Creator™ 4.2;
Programming Language: C (Arm
Associated Parts: All
PSoC 6 MCU
Related Hardware:
CY8CKIT-062-WiFi-BT PSoC 6 WiFi-BT Pioneer Kit, CY8CKIT-062-BLE PSoC 6 BLE Pioneer Kit
Hardware Setup
This example uses the PSoC 6 WiFi-BT Pioneer kit's default configuration. Refer to the
configured correctly. You can also use PSoC 6 BLE Pioneer Kit to test this example by modifying the project to use the PSoC
6 MCU with BLE Connectivity device on the board.
Software Setup
This project uses Tera Term as a UART terminal emulator for displaying the output messages. You can use the terminal
emulator software of your choice.
Operation
Plug the CY8CKIT-062-WiFi-BT Pioneer kit board into your computer's USB port.
1.
2.
Build the project and program the PSoC 6 MCU device. Choose Debug > Program menu for this step. For more
information on device programming, see PSoC Creator Help. Note that the flash for both CPUs is programmed in a single
program operation.
3.
Open a UART terminal emulator. Set the baud rate to 115200 bps.
Press the reset switch (SW1) on the Kit. Observe the "Hello World!!!" message on the UART terminal.
4.
5.
Press the Enter key to start blinking the LED on the kit.
6.
Observe the LED blinking every second.
www.cypress.com
Peripheral Driver Library
(PDL) 3.0.1
®
GCC 5.4.1 and Arm MDK 5.22)
parts with dual CPU
Document No. 002-21773 Rev.*A
CE221773 – PSoC 6 MCU - Hello World
®
®
Cortex
-M4 CPU of PSoC 6 MCU.
®
Kit user guide
to ensure that the kit is
Example
6 MCU.
1
Need help?
Do you have a question about the CE221773 and is the answer not in the manual?
Questions and answers