cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 CDC USB - binary files and EOT indication

ECrom.1
Associate III

Hello all,

2 more questions on STM32 USB CDC

1) I see that it works fine for ASCII files, but when I transfer a binary file it does not. Any advice or parameter I missed?

2) I get the interrupts, but how can I get an indication that the transfer has finished?

Thanks

Eli

2 REPLIES 2
Olivier GALLIEN
ST Employee

Badly tag with topic "STM32 MPUs", apply same topics as previous post.

Pay attention to put relevant topic in order to reach relevant people.

Thx,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Pretty sure the serial stream doesn't understand the concept of files, or signalling an end of data. You'd presumably use some Host side method or protocol, to convey this. Like a Terminal app using XMODEM, or sending data as a .HEX file, where the line formats define an end record.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..