element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
  • 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
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#085 – UART Bootloader in PSoC 4
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1 reply
  • Subscribers 25 subscribers
  • Views 770 views
  • Users 0 members are here
Related

PSoC 4 Pioneer Kit Community Project#085 – UART Bootloader in PSoC 4

cy.wbz
cy.wbz over 12 years ago

Hello!

 

In today’s example we will wade into the often confusing swamp of Bootloaders. We’ve touched on the bootloader in an earlier example in this series, when we discussed the dual ARM chip design of the Pioneer board. In that example we showed the user how to bootload a new project into the PSoC 5LP device.

 

In this example we will show case how to create a PSoC 4 based UART bootloader. In the example we will use the PSoC 5LP and the USB-UART capability to bootload code into the PSoC 4 over the UART protocol. We will include an example project and a host application that users can utilize to bootload their new project into the PSoC 4.

 

While this example may not be as useful with the Pioneer kit, as it has a programmer onboard, it can be extremely valuable in using the Pioneer kit to bootload new code into a device on a custom PCB board that does not have a programmer onboard.

 

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Project Images

 

Components Used: 

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • PWM
  • UART
  • Bootloader
  • CyPins
  • CyClock

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

In this example we have included an application note that discusses bootloaders, how the UART bootloader works, and walks the user through creating a bootloadable project, and a new project that can be bootloaded into the target device.

 

At the bottom of the post we have included the example projects, host GUI source code, and the application note.

 

In the example we will use the onboard three color LED to show that new code has been loaded into the PSoC 4. In the base example we will flash the red LED. We will then use the Bootloader GUI to load in new code over the UART bridge. The new code will then flash the green LED. We have a second project that will then flash the blue LED. While the functionality of the examples is a simple flashing LED, we are showing the user how to utilize and implement a UART bootloader for their PSoC 4 device.

 

The application note for the UART PSoC 4 bootloader can be found at the following web page:

 

PSoC 3, 4, 5LP UART Bootloader

 

Hardware Connections:

 

Simply connect the UART lines from the PSoC 5LP (P12.6 and P12.7) to the PSoC 4 device header (P0.0 and P0.1).

 

Test Your Project:

 

Program the Pioneer board with the UART Bootloader example. Then use the UART Bootloader GUI to update the application code on the PSoC 4. See that the flashing LED changed from the Red to the Green or Blue.

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
imageAN68272_001-68272.pdf
AN68272.zip
  • Sign in to reply
  • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Hello Matt.

    Thanks for this project. Excellent can take this option in our psoc 4 pioneer kit to program another's psoc 4 devices using the psoc 5LP chip onboard in the pioneer kit. The community can optimizing the using of the kit and saving money.

     

    best regards,

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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