try to run tuner gui for psoc 4 pioneer kit

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

cross mob
Anonymous
Not applicable

Hi everybody,

   

I've start to test my new psoc 4 pioneer kit and I've tried to run capsense tuning, enabling tune helper in CSD component, copying code suggested on reference to run helper:

   

void main()   
{   
    CyGlobalIntEnable;
    CapSense_TunerStart();
    while (1)
    {
        CapSense_TunerComm();
    }
}

   

but helper gui signal aways "read operation failed". I've noticed that tune helper config tab in CSD component properties has  different (less)  parameters than other reference, e.g. "psoc 4 capsense design guide". I've tried to use pscoc5 inside pinoeer kit as i2c bridge (it's seems supported by helper gui).

   

Does anyone has some experience about that? I'm a beginner with psoc world and try to find some help with this new one.

   

Thanks

0 Likes
14 Replies
Anonymous
Not applicable
        You need to make sure that the I2C address specified in the tuner matches the address set in the Creator.   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

..and make sure that I2C pins are P4(0) and P4(1)

   

 

   

Bob

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

Hi,

   

thanks for quick reply. In the image attached I've collect i2c setup for tune helper, into CSD block config panel (and so report i2c routing) and into tune helper communication config panel. For me it seems correct (as you suggested), but still doesn't work, always with "read operation failed" allert from tuner gui.

   

I still try to use PSoC5 into pioneer kit as i2c bridge to PSoC4, recognized by tune helper as KitProg interface: I've tryed to check HW communication with a scope over i2c serial resistance mounted into pioneer kit (I've reffered indication on kit schematics for catch i2c connection between PSoC 4 & 5) and I've seen messages corresponding initial handshake that stops when gui reports error (so PSoC5 try to talk to PSoC4).

   

Thank for any suggestion.

0 Likes
Anonymous
Not applicable

I just redid it on my side.

   

 

   

The I2C must be connect to P3[0] & P3[1]. Then everything should work fine.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked
        "Should work fine" or "does work fine"? Bob (Small window)   
0 Likes
Anonymous
Not applicable

Well, that would depend on th erest of his project.

   

What I did:

   
        
  1. Create a new project based on the Psoc4 dev kit's CapSense sample project.
  2.     
  3. Open the Capsense component and enable Tuner Helper
  4.     
  5. Map the CapSense:TunerIntf pins to P3[0] and P3[1]
  6.     
  7. In main() add CapSense_TunerStart(); right before the for(;;) statement.
  8.     
  9. In main() add CapSense_TunerComm(); right below the for(;;) statement.
  10.     
  11. Program board
  12.     
  13. Rightclick on the Capsense component and click Launch Tuner.
  14.     
  15. In the tuner click Start
  16.    
   

This works.

0 Likes
Anonymous
Not applicable

Thanks Errol,

   

I've routed PSoC4 tune help i2c from P4[0,1] to P3[0,1] and now helper gui can connect (it notice me to set sub-address to 1 byte, first).

   

If I had read with more attention the poineer kit schematic, I should have noticed the the i2c port on PSoC4 is P3 and not P4.

   

Thanks again

0 Likes
Anonymous
Not applicable

Glad to hear.

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

Hallo everybody,

   

I have the same problem now.

   

I have changed my settings like you, but I can not run the launch tuner.

   

Can anyone help me?

​I attached my programm

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

For PSoC 4 BLE you need to connect I2C to pins 3[5] and 3[4].

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Ok Thank you Bob.
It works well.

   

Do you know, which commands should I write and which settings should I set in Variable Settings in BCP?

   

I have tried to write the commands and repeat, but no signal comes out.

Thanks
Asyraf

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

Afaik there are tuner examples with some pdf documentation for setup.

   

 

   

Bob

0 Likes
LaPe_296836
Level 2
Level 2
First like received

Hi - looking for similar help with CY8CKIT-042 BLE Pioneer Kit.

   

I've tried a number of capsense projects (that I've written, and that I've modified from examples) and I've got nothing working.  Neither proximity nor linear slider.  I have been able to run the Tuner with the "vanilla" Capsense module (graphs are always pinned to rails), and when I try to run the tuner with Capsense_CSD I get Desired Packet Size Mismatch error.

   

 

   

Thanks for any help!

   

 

   

L.

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

Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes