- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
(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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
(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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I followed your instructions and it still fails. Below is the screenshot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]
// 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
// Software in main.c
If you just want the tuner to work, it works with simple code as described in the datasheet.
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,