This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLPC3479: DLPs4710LC

Part Number: DLPC3479

https://e2echina.ti.com/support/dlp/f/dlp-products-forum/290165/dlp4710evm-lc-cyusbserial-dll-64-cypress_i2c_readi2c

The customer migrated DLPC3479 sample codes(https://www.ti.com/tool/DLPC-API)

to Qt 5.12 + MSVC2017 64bit  Release ,cyusbserial.dll

But CYPRESS_I2C_ReadI2C failed.

1----samples .c added into Qt cpp code, as shown in picture 1

                                                                                          Picture 1

2----CYPRESS_I2C_WriteI2C  is good , but CYPRESS_I2C_ReadI2C  failed。as shown in picture 2

                                                                                         picture 2

3----in QT library  Write command is successful. but Read  command is failed as shown in picture 3.

4----use VS2017 running samples(pure C)to do the test , 64 bits library is good as shown in 4 and 5.

      

                                  Picture 4                                                                                                                                  Picture 5

Please check how to use DLP3479 in QT.

The whole codes: 

  • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/94/dlpcQtDemo.7z

  • Hi Jeremy,

    Please allow our team to investigate this question and get back to you by next week.

    Thanks,

    Lori 

  • Hello Jeremy,

    Our samples generally link against the 64-bit version of the Cypress DLLs, as seen in our CMakeLists.txt file:

    ```

    find_library(CYUSBSERIAL cyusbserial third_party/cyusbserial)

    ```

    Your `dlpcQtDemo.pro` file seems to always link against the 32-bit DLLs, as seen here:
    ```
    #32位库
    win32: LIBS += -L$$PWD/../M11B/DLPC-API-1.10/third_party_32/cyusbserial/ -lcyusbserial

    INCLUDEPATH += $$PWD/../M11B/DLPC-API-1.10/third_party_32
    DEPENDPATH += $$PWD/../M11B/DLPC-API-1.10/third_party_32

    #64位库
    #LIBS += -L$$PWD/../M11B/DLPC-API-1.10/third_party/cyusbserial/ -lcyusbserial

    #INCLUDEPATH += $$PWD/../M11B/DLPC-API-1.10/third_party
    #DEPENDPATH += $$PWD/../M11B/DLPC-API-1.10/third_party

    ```

    I'm not positive, but this could be the cause of the issue. Unfortunately the error code you're getting from the Cypress library isn't very helpful (return code 6 == CY_ERROR_REQUEST_FAILED)/

    Could you please try linking against the 64-bit DLLs and let us know if it still doesn't work?

    Regards,

    Andrew