Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > SD Card based bootloader for PSoC3

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



SD Card based bootloader for PSoC3
Moderator:
RKRM

Post Reply
Follow this topic



SD Card based bootloader for PSoC3

kmmankad posted on 11 Jun 2012 5:36 PM PST
Top Contributor
268 Forum Posts

Hey,I've written out a proof-of-concept SD card based bootloader.

The Bootloader will write a pre-specified file from an attached SD Card(SPI interfaced) to
the chip's flash,and execute a software reset following that.

This is actually a stock USB HID bootloader that has been given this extra functionality.After an SD card bootload
attempt,the bootloader will enumerate as a USB HID too,and can accept the program CYACD file from there as well.
Hence this extra feature can be added easily to any kind of existing bootloader,or can also function standalone.

Note that this uses the emFile Component,and hence will need its dependent source files which can be downloaded from http://www.cypress.com/go/comp_emfile

This code has been tested with the CY8CKIT-030,and the microSD module from www.embeddedmarket.com with PSoC Creator updated to Component Pack 3.
 

Find the code here https://github.com/kmmankad/SDBoot

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

PSoC Rocks,

 

Regards,

kmmankad

 

 




Re: SD Card based bootloader for PSoC3

LookAtSystemSolutions posted on 24 Jun 2012 07:54 PM PST
Top Contributor
31 Forum Posts

That is an interesting concept. I wonder if this will be picked up here in the forum.

Are there more members here that have tried this out?

Just curious.



Re: SD Card based bootloader for PSoC3

hli posted on 25 Jun 2012 12:27 AM PST
Top Contributor
675 Forum Posts

Great work! Do you know whether this will work on a PSoC5? Or will it need modifications?



Re: SD Card based bootloader for PSoC3

kmmankad posted on 27 Jun 2012 07:37 AM PST
Top Contributor
268 Forum Posts

Hey,

thanks for the kind words guys.

Yes,this can most definitely work with the PSoC5,only the method of creating the emFile part will change.I dont have a PSoC5 kit around,so cant test it.

But it works beautifully with the PSoC3 :-D

 

Actually this can be made more streamlined my modifying the cy_boot component itself.But I didnt want to touch that,so this currently has code thats added onto a USB Bootloader.



Re: SD Card based bootloader for PSoC3

kmmankad posted on 27 Jun 2012 07:39 AM PST
Top Contributor
268 Forum Posts

Also,this takes up quite a bit of flash,which can be reduced by writing your own SDCard interfacing routines.I plan to do that sometime in the future,so lets see.The emFile ones,while convinient,seem to take up some flash space.



Re: SD Card based bootloader for PSoC3

kmmankad posted on 27 Jun 2012 07:41 AM PST
Top Contributor
268 Forum Posts

(Sorry,I should keep it all in one post.I recall stuff just after I hit 'Submit')

This doesnt do any checksum stuff,because I believe in an ideal world.But its really simple to implement the Basic Summation type of checksum.

This also doesnt check the SiliconID and revision.I mean,the code is there,but I've commented it out.



Re: SD Card based bootloader for PSoC3

srim posted on 27 Jun 2012 09:50 AM PST
Cypress Employee
121 Forum Posts

 Great work kmmankad :) You can try out the new PSoC creator 2.1 (EA) to modify the bootloader alone without meddling with Cy_Boot component as it is a seperate component consuming much smaller size.






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