Other Parts Discussed in Thread: , FDC2214
Tool/software: Code Composer Studio
Hi, I've written a LavView interface to communicate with the LDC1614EVM, I found several examples on how to write and read the registers from the LDC1614, but is unclear to me how to form the string that retrives the firmware version.
in host_interface.c i found:
const uint8_t HOST_CMD_STREAM_WHITELIST[] = {
HOST_CMD_CONTROLLER_TYPE,
HOST_CMD_FIRMWARE_VERSION,
HOST_CMD_ENUMERATE_DEVICES,
HOST_CMD_SPI_READ_BYTES,
HOST_CMD_READ_ALL_DATA,
HOST_CMD_LED_STATES
};
and:
case HOST_CMD_FIRMWARE_VERSION:
// hack here to reset device
removeAllTasks();
// copy from const data
memcpy(&(responsePkt->fields.data[0]),&HOST_FIRMWARE_VERSION[0],HOST_FIRMWARE_VERSION_LENGTH);
responsePkt->fields.hdr.length = HOST_FIRMWARE_VERSION_LENGTH;
sendPacket(responsePkt,HOST_OUT_HDR_SIZE + HOST_FIRMWARE_VERSION_LENGTH + HOST_CRC_SIZE);
break;
I've tried sending 0x02 from labview and read 4 bytes immediately and I get all 0x00,
Thanks for the help,