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.

DLPC3478: 用DLPC-API-1.10-Setup编译成功,调用DLPC34XX_WriteRgbLedEnable后,debug时程序正常运行,release时会有"write i2c Error"的报错

Part Number: DLPC3478

同样的硬件和程序,运行结果如图,debug时DLPC34XX_WriteRgbLedEnable返回值是0,release时DLPC34XX_WriteRgbLedEnable返回值是0,请问什么原因?

  • Cypress USB driver要copy到一个目录

     

    另外读DLPC3478 ID能否成功?

                  DLPC34XX_ControllerDeviceId_e DeviceId = 0;

                  DLPC34XX_ReadControllerDeviceId(&DeviceId);

         printf("Controller Devicde Id = %d \n", DeviceId);

  • 你好,非常感谢你的回复,

    我刚确认了下:1,Cypress USB driver是在“D:\Program\DLPC-API-1.10\third_party\cyusbserial”同一个文件夹下

                              2,获取deviceid,debug可以正常获取,release未正常获取到,如下图所示:

  • 在Visual studio 2017(或者其他版本),编译选项中按照下列配置(release)版本就没有问题。