cancel
Showing results for 
Search instead for 
Did you mean: 

usbd_conf.h

tony239955
Associate II
Posted on June 21, 2012 at 11:56

I am trying to compile some code for the f4 discovery board to send ADC readings to the USB as posted a while ago with the following note:

''This is from an Example of CDC Virtual Com Port on the USB 

 for the Stm32f4Discovery Board.

It is modified to continuously output, to the USB Com, 

 the ADC value of PC0 (Pin0 of PortC).''

I am trying to compile it myself, merging the standard ST firmware code with a main.c from the new application. However, I find that the usbd_conf.h has been modified, even though it has the same version number (V1.0.0). Neither the version that came with the CDC Virtual Com app (22July2011), or the ST standard one (19Sept2011) is sufficient - in the 22July2011 one there are more definitions than the other, but some missing as well - looks like I have to merge them to stop fatal error messages. I have attached both versions, in case anyone can explain.

Tony

4 REPLIES 4
Posted on June 21, 2012 at 14:12

I'd start by using the USB libraries from 2012, and then port in the ADC code.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tony239955
Associate II
Posted on June 21, 2012 at 15:22

Thanks Clive

But where can I find 2012 USB libraries? - the latest DSP_StdPeripherals doesnt contain any USB libraries. I have just found some USB VCP info on mcu.cz which looks as though it might help - needs study.

Tony

Posted on June 21, 2012 at 17:32

The site is a train wreck, looks pretty, hard to find things quickly/efficiently. Each individual chip has it's own resource tab, but those resources aren't uniformly updated, I end up having to rummage around to find the things I need.

http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32_f105-07_f2_f4_usb-host-device_lib.zip

This in fact contains newer firmware library releases than the standalone versions.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tony239955
Associate II
Posted on June 21, 2012 at 19:34

Hi Clive

Thanks for the link - I'm not sure I could have found that without your help. The examples supplied are fantastic - I see there is the 'official' virtual com port example, which I will edit to add the ADC read which I was trying to compile originally. On the subject of searching, there seems to be a problem with the ST forum in that the search box at the top of the screen doesn't seem to find known words - eg if I type in usbd it does not find this topic. Not very helpful!

Tony