Skip to main content
Visitor II
February 2, 2020
Question

STM32 CDC USB - binary files and EOT indication

  • February 2, 2020
  • 2 replies
  • 898 views

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

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    February 3, 2020

    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

    Graduate II
    February 3, 2020

    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.​