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

PSoC™ 4 Forum Discussions

CYW20719
Level 1
25 sign-ins 10 sign-ins 5 replies posted
Level 1

hi

I'm using cy8ckit-042-ble-a to do experiments now, and created a new PSoC_4_BLE_CapSense_Slider_LED01 routine, but now I can't lunch tuner after building and program. Please help me.

0 Likes
1 Solution
MaMi_1205306
Level 6
50 solutions authored 25 likes received 250 sign-ins
Level 6

Hi,

 

I confirmed for the attached project.

I think that the following three settings are insufficient.

 

(a) The CapSense component "Enable tune helper" is unconfigured.

MaMi_1205306_1-1642151999563.png

 

(b) 

The following API is not described in the main function in main.c file.

CapSense_TunerStart ()    // Initialize API
CapSense_TunerComm ()    // Communication API

 

(c)

It may be better to comment out the BLE related software in for-loop.

The reason is that it is necessary to establish a connection with BLE.

/*******************************************************************************/
int main()
{

 InitializeSystem();

 CapSense_TunerStart();

 

 for( ; ; )

 {

  CapSense_TunerComm();

 }

}

/*******************************************************************************/

 

However, I don't have CY8CKIT-042-BLE-A at hand, so I can't confirm the operation.

 

Regards,

View solution in original post

0 Likes
5 Replies
Hari
Moderator
Moderator 750 replies posted 500 replies posted 250 solutions authored
Moderator

Hi @CYW20719 

 

Please check the pinouts of the project that you are using. Note that the CY8CKIT-042BLE has its I2C pins as P3.4 (SDA) and P3.5 (SCL). Please ensure these pins are being used for I2C Tuner communication. 


In case the issue is still present, can you please share your project with us so that we can check the issue at our end as well?

 

Best regards, 
Hari

0 Likes
CYW20719
Level 1
25 sign-ins 10 sign-ins 5 replies posted
Level 1

hi Hari

I tried the modification you mentioned and it didn't work. The following is my project, please have a check.

0 Likes
MaMi_1205306
Level 6
50 solutions authored 25 likes received 250 sign-ins
Level 6

Hi,

 

I confirmed for the attached project.

I think that the following three settings are insufficient.

 

(a) The CapSense component "Enable tune helper" is unconfigured.

MaMi_1205306_1-1642151999563.png

 

(b) 

The following API is not described in the main function in main.c file.

CapSense_TunerStart ()    // Initialize API
CapSense_TunerComm ()    // Communication API

 

(c)

It may be better to comment out the BLE related software in for-loop.

The reason is that it is necessary to establish a connection with BLE.

/*******************************************************************************/
int main()
{

 InitializeSystem();

 CapSense_TunerStart();

 

 for( ; ; )

 {

  CapSense_TunerComm();

 }

}

/*******************************************************************************/

 

However, I don't have CY8CKIT-042-BLE-A at hand, so I can't confirm the operation.

 

Regards,

0 Likes
CYW20719
Level 1
25 sign-ins 10 sign-ins 5 replies posted
Level 1

Hi

I followed your instructions and it still fails. Below is the screenshot.

CYW20719_0-1642390341660.pngCYW20719_1-1642390364365.png

 

CYW20719_2-1642390385429.png

 

0 Likes
MaMi_1205306
Level 6
50 solutions authored 25 likes received 250 sign-ins
Level 6

Hi,

 

Refer to the CapSense component data sheet P.38 and later.

 

// I2C of PSoC4BLE has the following settings:

SCL => P3 [5]

SDA => P3 [4]

MaMi_1205306_0-1642391846095.png

// I2C component settings:

Data rate 400 kbps

Address 0x08

Sub address 16    // This setting change is important

 

// Launch tuner configuration settings (Right click on the CapSense component and select Launch Tuner):

I2C address 8

Sub-address 2 Byte

Data rate 400 kHz

MaMi_1205306_1-1642392408850.png

 

// Software in main.c

If you just want the tuner to work, it works with simple code as described in the datasheet.

MaMi_1205306_2-1642392528460.png

If you want to confirm the operation of establishing the BLE connection, you can write CapSense_TunerComm () under HandleCapSenseSlider() function and it will work.

 

Regards,

0 Likes