Problem in bootloader having SPI interface in PSOC 5LP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi All,

   

I am having a problem. When i create a bootloader project and include SPI interface (Master). The bootloader does not show me SPI option to select in "Communication component" window.

   

For better understanding i attached the picture along with this question.

   

Looking forward for your suggestions.

   

Best Regards

   

Awais

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

OK. That design is not very uncommon.

   

You have got 3 different choices:

   

1st a total re-program of your ADC board with data residing on the motherboard.

   
        
  • gives maximum of flexibility since project can be replaced with any other project
  •     
  • needs bootloader on ADC board and a .hex file on the motherboard
  •    
   

2nd Program the board directly with a PSoC5 Kitprog-program

   
        
  • gives maximum of flexibility since project can be replaced with any other project
  •     
  • needs the KitProg software from Cypress running on Motherboard
  •     
  • needs a .hex-file to program on the motherboard
  •    
   

 

   

3rd Setting only parameters of the ADC project.

   
        
  • Safest way, only what may be changed will be changed
  •     
  • requires a user interface with keypad and a display on the Motherboard
  •     
  • requires protocoll programming on ADC board
  •     
  • requires a lot of programming at Motherboard
  •     
  • Very professional look
  •     
  • Allows you to sell Motherboard separately increasing your sales
  •    
   

 

   

Do not focus on interface speed, the differences might be reduced to a few seconds, the total programming cycle will be through within less than a minute, communication is only a part of that time.

   

 

   

Bob

View solution in original post

0 Likes
11 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You need to use an SPI Slave communication interface with the bootloader, an SPI Master is not supported.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thankyou Bob for your reply,

   

But then, this means that i will use bootloader project with SPI slave and bootloadable project with SPI master?

   

 

   

Regards

   

Awais

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Yes, the bootloadable can be Master or Slave. Its constrained to be Slave in

   

bootloader due to direction of data flow, eg. you are downloading a program

   

to PSOC target.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The bootloadable does not need any communication interface at all, but the bootloader host (that program which has access to the .hex file to be programmed) will be the SPI master.

   

So the question for your project is: What device do you want to connect to your PSoC to get its firmware updated?

0 Likes
Anonymous
Not applicable

Actually, I want to update my PSOC ADC circuit (it includes amplification (PGA), modulation, filtering and conversion stuff)  in order to update the gains and every thing based on the data from the outside world. Since SPI is faster, so i need this.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Small clarification, the bootloadable is your ultimate firmware, so if it needs

   

SPI for some other purpose it can be master or slave depending on your

   

needs. Earlier comment was belief from your comments that you needed

   

SPI in your target firmware as part of the design.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yes, the "outside world". This can be anything between a PC, or a self-made device communicating with or just re-programming your firmware. For self-made devices it could be of interest how to get the .hex file onto that device.

   

I think you should at first specify which hardware you want to use, then you can think of how you want to have that done

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Thankyou Bob for your reply. I attached my scenario. I want to update my psoc adc via motherboard psoc. What i thought that i made my  PSOC ADC (small box) as slave and mother board as master. So this means both will be bootable. Am i right?

   

If yes, then i am confused with the bootloader project file that i need to make for both boards how do i communicate every thing?

   

looking forward for your reply.

   

Regards

   

Awais

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

OK. That design is not very uncommon.

   

You have got 3 different choices:

   

1st a total re-program of your ADC board with data residing on the motherboard.

   
        
  • gives maximum of flexibility since project can be replaced with any other project
  •     
  • needs bootloader on ADC board and a .hex file on the motherboard
  •    
   

2nd Program the board directly with a PSoC5 Kitprog-program

   
        
  • gives maximum of flexibility since project can be replaced with any other project
  •     
  • needs the KitProg software from Cypress running on Motherboard
  •     
  • needs a .hex-file to program on the motherboard
  •    
   

 

   

3rd Setting only parameters of the ADC project.

   
        
  • Safest way, only what may be changed will be changed
  •     
  • requires a user interface with keypad and a display on the Motherboard
  •     
  • requires protocoll programming on ADC board
  •     
  • requires a lot of programming at Motherboard
  •     
  • Very professional look
  •     
  • Allows you to sell Motherboard separately increasing your sales
  •    
   

 

   

Do not focus on interface speed, the differences might be reduced to a few seconds, the total programming cycle will be through within less than a minute, communication is only a part of that time.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thankyou Bob for your valuable suggestions.
 I would like to go with 3rd option. Lets see how good i can do with that 🙂

   

Regards

   

Awais

0 Likes
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I did something similar a few years ago, turned out to become something like a menu-system. Needed a keypad and used the character LCD together with the CY8CKIT-050.

   

Keypad component attached

   

 

   

Bob

0 Likes