2011-05-13 01:52 AM
Hello everybody,
I want to start the USB development for the Discovery board, basically to send data and download data from a PC. Could you please tell me which library can I use for that?
Thanks in advance,
#stm32-discovery-usb2011-05-13 12:42 PM
I want to start the USB development for the Discovery board, basically to send data and download data from a PC. Could you please tell me which library can I use for that?
Most of us use the ST-LINK USB connection, either with the ST-LINK Utility or the debug environment within the tool chain's IDE via a DLL/driver provided by ST, to download code/data onto the part. As far as I'm aware, the STM32F100 does not support USB. I have not observed the SWD debug communication channel being viable.2011-05-13 02:24 PM
yes, you are right. I spent the whole day and found that there is no way to program stm32 discovery via USB. What it is weird is that there are two controllers onto the stm32 discovery: stm32f100 and stm32f103, the later much powerful than the first of course, but used only for downloading data from a pc and for debugging. stm32f103 has USB as one of its peripherals able to be programmed. So, I need to look for something else. Thanks a lot
2011-05-13 05:49 PM
The STM32F103C8T6 part provides the ST-LINK JTAG/SWD function to program the STM32F100 part via USB.
While it's technically feasible to program the 103, your ability to escape the part is rather limited.2011-05-15 11:08 PM
''What it is weird is that there are two controllers onto the stm32 discovery''
Actually, that's not weird at all! If you open up a Keil uLink (JTAG adaptor) you will see that it contains a microcontroller to do its stuff. In the Discovery board, ST have simply implemented the JTAG adaptor on the board.