Yes, this is possible. You just need an descriptor for a composite device that has two ACM devices.
Not a feature of libopencm3, but a feature of the USB spec. I believe there are multiple examples of combined devices in libopencm3. But they would show up as COM1 / COM2 or /dev/ttyUSB0 and /devttyUSB1 respectively and you would handle each of the data on them independently in the firmware. Sincerely, Jason Kotzin > On Mar 25, 2017, at 2:56 PM, kristoff <krist...@skypro.be> wrote: > > Hi, > > > To continue the "USB"-related threads here, a question. > > I would like to use a mapple-mini clone (STM32F103) with libopencm3 to > make a programmmer for the olimex ice40HX1K fpga board (*) > > In fact, it is actually a programmer for the winbond 2MB flash-memory. > There is already an arduino sketch for this and the linux-based > "flashrom" tool also works (tested it on a RPi), so it should be doable. > > > > An interesting thing is that the programming-connector on dev-board not > only provides access to the flash-memory to program that chip, but also > to two ports on the fpga itself. These can be used as as UART connection > back between the fpga and (say) a PC. > > > > The arduino sketch only has one single serial connection, so both > applications are multiplex on that one link. > > However, the the mapple mini-clone STM32F103 has a USB interface, and > you can do ACM (serial-over-usb) in software on the STM32F1, so I was > wondering if it not possible to provide two serial virtual connections > on that USB link: one for the programming interface and one for the > serial UART connection directly towards the FPGA. > > > I know it is possible to define multiple services over USB, and set up > multiple endpoints; but how would you configure two ACM interfaces over > one single USB connection? > > > > Any ideas? > > > Cheerio! Kr. Bonne. > > > > > > > (*) > https://www.olimex.com/Products/FPGA/iCE40/iCE40HX1K-EVB/open-source-hardware > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > libopencm3-devel mailing list > libopencm3-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libopencm3-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ libopencm3-devel mailing list libopencm3-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libopencm3-devel