2022-02-04 01:27 PM
I'm using STM32F745. I would like to use the CDC USB to receive data from Tera Term using the XMODEM protocol. I can configure CDC_Receive_FS() to receive data for blocks of 64 bytes or less. The procedure for this is well documented. XMODEM packets are 133 bytes. I can only reliably receive the first 64 bytes. It won't communicate at all if CDC_DATA_FS_MAX_PACKET_SIZE is increased beyond 64. How can I facilitate this?
2022-02-04 04:02 PM
CDC_DATA_FS_MAX_PACKET_SIZE is a constant, 64. It cannot be increased. Instead receive several packets.
2022-02-06 11:02 AM
The problem is that the subsequent packets are the same as the first. They never update.
2022-02-06 02:30 PM
If you type characters in teraterm, do you receive them correctly on stm32 side?
2022-02-06 04:16 PM
Yes, for the first 64 bytes.