2019-01-16 08:09 AM
I receive some data from a terminal. Say I send 1234 on the terminal.
I set a break point on
void EP3_OUT_Callback(void)
{
packet_receive = 1;
Receive_length = GetEPRxCount(ENDP3);
PMAToUserBufferCopy((unsigned char*)Receive_Buffer, ENDP3_RXADDR, Receive_length);
}
But I see that every char copied on the first index of the buffer.
I see
Receive_Buffer[0] = 1
Receive_Buffer[0] = 2
Receive_Buffer[0] = 3
Receive_Buffer[0] = 4
Also in PMAToUserBufferCopy I see the first argument's address is incremented.
What do I miss?
Solved! Go to Solution.
2019-01-17 01:12 AM
I found the problem. Terminal sends too slow.
2019-01-16 05:29 PM
> I see
> Receive_Buffer[0] = 1
> Receive_Buffer[0] = 2
Where?
-- pa
2019-01-16 10:29 PM
I program in IAR. I set a break point after PMAToUserBufferCopy((unsigned char*)Receive_Buffer, ENDP3_RXADDR, Receive_length); and see Receive_Buffer.
2019-01-17 01:12 AM
I found the problem. Terminal sends too slow.