After connecting (successfully) to an ECU, dynamically allocating one dto-entry in one dto in one daq-list and calling XCP_StartStopDAQList, I call XCP_DequeuePacket and get XCP_ERR_INSUFFICIENT_BUFFER as result.
The call of XCP_DequeuePacket looks like that:
Code: Select all
WORD packet_buffer_length = 8; BYTE packet_buffer[packet_buffer_length]; m_result = XCP_DequeuePacket(m_xcp_handle, XCP_DTO_QUEUE, packet_buffer, packet_buffer_length);
Do you have any ideas why this error can occur?
If that helps, here is the whole Code: http://pastebin.com/dcpUznkj. The functions get called in the order they occur in the snippet and every XCP function returns XCP_ERR_OK except XCP_DequeuePacket.
Thanks in advance!