CY8CKIT-049-4xxx PSoC® 4 Prototyping Kit Guide, Doc. #: 001-90711 Rev. *J
35
5.
Code Examples
This section describes how to use the code example included with the kit and how to develop
custom bootloadable code examples for new applications.
For a list of all code examples available with PSoC Creator, visit the
. This page lists all the PSoC Creator based code examples available across PSoC Creator,
Application notes and kits. Most of these examples CANNOT be directly used with the kit. Refer to
Converting a Non-bootloadable Project to a Bootloadable Project on page 40
for details on how to
port these projects to use with CY8CKIT-049.
For PSoC Creator related training and video tutorials, visit
.
5.1
Bootloader Base Code Example
The CY8CKIT-049-4xxx prototyping board is pre-programmed with a simple blinking LED code
example. This code example uses a PWM to slowly blink an LED. Included in the application project
is the Bootloader Base project. The Bootloader code is detailed in the UART_Bootloader project
available on the kit web page.
In the bootloader example, the device rapidly blinks an LED when the bootloader is active, provides
UART communication support for bootloading, and reads the state of the switch (SW1). You can
observe the state of the board by noticing the rate at which the LED blinks. The bootloader is acti-
vated when you plug in the CY8CKIT-049-4xxx while pressing the SW1 button. The bootloader
reads the state of this button during power-up. If the button is not pressed, the bootloader jumps to
the user's application code. If the button is pressed, then the bootloader waits for a new application
to be transferred. While the bootloader waits for the new application, it rapidly blinks the onboard
blue LED.
Note that the bootloader project is fully customizable, so you can use different methods for entering
the bootloader mode, and different feedback mechanisms. For example, you can change the project
so that it waits at power-up for a specified amount of time for a new application to be loaded rather
than through the use of a button press. All resources of the PSoC are available for use by the
bootloader project.
For details on UART bootloader in PSoC 4, please refer
®
3, PSoC 4 and PSoC
5LP UART Bootloader
. The landing page of the application note also includes a video providing an
overview of a UART bootloader.
Summary of Contents for verical CYPRESS CY8CKIT-049-42 Series
Page 66: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 65 Appendix ...
Page 67: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 66 Appendix ...
Page 68: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 67 Appendix ...
Page 69: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 68 Appendix ...