Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5
Moderator:
RKRM

Post Reply
Follow this topic



AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5

kmmankad posted on 27 Dec 2011 3:37 AM PST
Top Contributor
268 Forum Posts

 An awaited and awesome appnote is here!

Link : http://www.cypress.com/?rID=57561

Enjoy the power of the PSoC! :-)




Re: AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5

U2 posted on 27 Dec 2011 09:59 PM PST
Cypress Employee
589 Forum Posts

 This App Note can be used as a starting point to get started with USB Bootloader. The source code for a stand-alone GUI is avalable with this App Note. Take this source code and modify it to suit your needs. Note that this GUI is for windows only. On similar lines, application for Linux and MAC OSX can be developed. 

Post your suggestions and improvements here, which will be incorporated in the next revision of the GUI. If any other help is required as far as the tool is concerned, post it here.



Re: AN73503 - USB HID Bootloader for PSoC 3 - Writting time is long..

CEO posted on 09 Mar 2012 07:09 PM PST
Member
3 Forum Posts

AN73503 - USB Bootlader is wonderful and very very useful.

Thanks for Cypress.

Now I tested the AN73503 Bootloader Host(C# application) to program the firmware to my device.

It works very well.

But the writting time is somewhat long about 2 minutes.

 

For comparison, the same firmware is written to my device using "PSoC Creator Bootloader Host Program" It was very fast about only 5 second to finish writting.

 

Is the any method to shorten the writting time using AN73505 USB Bootloader Host ?

 

ps. My PC OS is Windows XP 32bit.

 



Re: AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5

U2 posted on 12 Mar 2012 10:43 PM PST
Cypress Employee
589 Forum Posts

Hello which device are you trying to porgram ? PSoC3 or PSoC5. waht is the size of the flash. You can reduce the write time modifying a parameter in the source code. Are you familiar with C# coding ?



Re: AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5

CEO posted on 17 Mar 2012 12:53 AM PST
Member
3 Forum Posts

Thanks  U2,

My Device is psoc3 CY8C3446. 

flash size is 106kbyte. ( = *.cyacd file size)

 

 

I checked the source file(Delegated_Functions.cs)  included AN73503. 

I found the "Sleep(100)" in the WriteData() method.

/* We neeed this delay for Bootload operation to be successsful */
                System.Threading.Thread.Sleep(100); 

May be this is time consumming routine. 100 msec is very long.

I want to shorten this time.

However, I  wonder  if I shorten this time about 1ms make some trouble to write flash.

It is very helpful if I know delay time of  "PSoC Creator Bootloader Host Program". I wil set the same time delay.

 

 



Re: AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5

U2 posted on 26 Mar 2012 02:19 AM PST
Cypress Employee
589 Forum Posts

CEO, that is the delay I am talking about. That delay is required in order to get a response from PSoC once you send a bootloader command to it. You can go to delays as low as 40ms. This number is as per my test results. You can continue lowering this vlaue until the point where your bootload process does not fail.



Re: AN73503 - USB HID Bootloader for PSoC® 3 and PSoC 5

kmmankad posted on 26 Mar 2012 08:16 AM PST
Top Contributor
268 Forum Posts

I am currently working on an SD-card based USB-bootloader and a multi-protocol bootloader

SD Card based bootloader is in essence like a regular USB HID bootloader,but if an SD card is present,it will load a .cycad file from there instead,and bootload "itself".

Multi-protocol is just a regular bootloader,which presents a menu(on a uart terminal) on power-on,allowing you to select the communication protocol that can be used for bootloading.. USB/I2C/SPI/SdCard...

Both of these are work in progress things,which is currently on pause since I lost my Harddisk,and lost the code too(backup..backup..backup!).. I'll post updates and more as soon as I get it back from warranty replacement..






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20