Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Multiple Channel Bootloading

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



Multiple Channel Bootloading
Moderator:
JFMD

Post Reply
Follow this topic



Multiple Channel Bootloading

srim posted on 14 Mar 2012 11:57 AM PST
Cypress Employee
121 Forum Posts

Multi- Channel Bootloading with PSoC Creator V2_0
 
 
With PSoC Creator v2_0, you can now bootload images using multiple channels. You can have multiple communication interfaces in your design and dynamically choose which communication protocol to use for Bootloading the image at run time.
 
For this you have to choose custom interface in IO component of Bootloader(BL) in system DWR settings and implement the following five communication APIs for each of the communication component used:
 
CyBtldrCommStart
CyBtldrCommStop
CyBtldrCommReset
CyBtldrCommWrite
CyBtldrCommRead
 
 
          
 
As seen from the above figure, USBFS and I2C are used as BL communication component. To switch dynamically during run time, you can use an interrupt that switches to one of the two available IO communication component whenever a flag is set.
 
 For eg:
 
CY_ISR(MY_ISR_ROUTINE)
{
   If ( switch_pressed)
Flag=1;
}
 
And implement the instance specific APIs according to the flag set.
 
For eg:
 
void CyBtldrCommStart(void)         
{
            if(Flag==1)     
I2C_1_CyBtldrCommStart();
           
            else
USBFS_1_CyBtldrCommStart();     
}
 
 
 
 
 Happy Bootloading 
 




Re: Multiple Channel Bootloading

kmmankad posted on 29 Mar 2012 04:19 AM PST
Top Contributor
268 Forum Posts

Great idea!.. I am working on exactly the same thing,but where one can select bootloading between USB,UART and SD Card.

 

Thanks :-)



Re: Multiple Channel Bootloading

srim posted on 03 Apr 2012 06:39 AM PST
Cypress Employee
121 Forum Posts

 Hi kmmankad,

Are you interfacing the SD card using SPI comm protocol?  I have attached the code snippet (comm_protocol_switch.c)  that explains how to switche between UART, SPI and USB for bootloading. You just need a slight modification to make it bootload from SD card. :)

Thanks,

srim

 



Re: Multiple Channel Bootloading

srim posted on 03 Apr 2012 06:47 AM PST
Cypress Employee
121 Forum Posts

Attached the top deisgn of my proj.

 






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