This thread has been locked.

DLPC3478: ghost in API developing.

Part Number: DLPC3478

Hi officer,

I am testing dlpc347x_samples.c in DLPC-API-1.12.

 

I simplified it and find the trouble : When I use "DLPC34XX_ReadRgbLedMaxCurrent/WriteRgbLedCurrent" after "DLPC34XX_ReadControllerDeviceId", the device ID is not available; when I comment out the "DLPC34XX_ReadRgbLedMaxCurrent/WriteRgbLedCurrent", I can get the device ID which is 11.

I am using Mingw v4.8.1 x64 compiler with this command:

gcc -std=gnu99 -DWIN32 -g -Iapi -Isamples main.c api\dlpc_common.c api\dlpc34xx.c api\dlpc347x_internal_patterns.c samples\cypress_i2c.c third_party\cyusbserial\cyusbserial.lib -o main.exe

I attached my code here, it is simplified from dlpc347x_samples.c

main.c 

cyusbserial.lib and cyusbserial.dll was replaced from here:

https://github.com/mayeranalytics/cyusbserial/tree/master/cypress/mingw32/x86_64

The reason I replaced them is that I want to use 64bit program. 

I appreciate any suggustions.

**Attention** This is a public forum