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

Reply via email to