There was an error reading data from the device

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.
wangyuanfan
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

I want to use SenseTuner in PSoC Creator to display capacitance value, but there is error message “There was an error reading data from the device” in SenseTuner.

  • Dev-board
    CY8CKIT-149

  • Firmware
    KitProg3 (updated by PSoC Programmer 3.29.0)

  • Darget and Project Setting
    Target Device PSoC4 > PSoC 4100S Plus
    Empty schematic

  • Component
    CapSense > CapSense
    Communications > I2C > EZI2C Slave
    Ports and Pins > Digital Output Pin

  • CapSense Setting
    Add a Button to CapSense
    Set  EZI2C sub-address size to 16bits
    Unckeck the Box of HWconnection and check change Initial Drive State to High(1)
  • Pin Assignment
    CapSense_1 Cmod : P4[1] (pin28)
    CapSense_1 Sns : P4[6] (pin33)
    EZI2C : scl P3[0] (pin18)
    EZI2C : sca P3[1] (pin19)
    LED: P5[2] (pin53)

  • Main.cpp
    I shared screenshot.

Building to the dev-board was successful, but here is the problem.(I shared screenshot)

  1. Open SenseTuner through CapSense
  2. Open Tuner Communication Setup to select I2C method
  3. turn the I2C speed to 100kHz
  4. Set Communication mode to Synchronized
  5. Check the Button0_Sns0 checkbox.
  6. Click the "Connect" button to connect, and the "Start" button to start the Tuner.


But there is error message “There was an error reading data from the device.”

How to fixed it ? Please help me.

0 Likes
1 Solution
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Dear community,

Refer to the following thread for the solution: https://community.infineon.com/t5/PSoC-4/There-was-an-error-reading-data-from-the-device/td-p/326449

Best regards,
Nikhil

View solution in original post

0 Likes
4 Replies
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @wangyuanfan ,

You may have opened Tuner from a different project. This may be the likely situation. Open the Sense Tuner app from the same project which was programmed onto the device.

 

In case you need to share the project, you can do the following: right-click on the project -> archive workspace/project -> minimal, and then attach the zip file here.

Best regards,
Nikhil

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

Thank you for responding.

This is zip file you need.

I deleted the project made by on my own because the example project provided by PSoC is more reliable.

Please review this.

0 Likes

I only want to display the value of capacitance by SenseTuner correctly.

0 Likes
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Dear community,

Refer to the following thread for the solution: https://community.infineon.com/t5/PSoC-4/There-was-an-error-reading-data-from-the-device/td-p/326449

Best regards,
Nikhil

0 Likes