I have a STM32-103STK board with a keil ulink-me usb programmer. My job is to create a USB connection to the pc. I've downloaded the USB-HID demo from keil (http://www.keil.com/download/docs/361.asp), compiled it and loaded it onto the board. But the demo isn't working. I know it would not work as it should be cause this board hasn't have the leds, but windows should recognize a USB device I think.
Does anyone knows how to get this working? Would this demo work on this board?
"Note that USB is pretty complex - it sounds like you should really be starting with something much simpler..."
i have to make this for school project, and we don't get further instructions...
"Embedded software like this is very specific to the hardware that it will run on - you cannot just take an example from one place, and expect it to work on any arbitrary board from somewhere completely different!"
But where to start? an example from st, olimex or keil?
The normal starting place for embedded novices is to blink a LED.
Then the standard "Hello, World"
Then build on that!
Given that you have an Olimex board, then Olimex is the obvious place to look for examples!
If the Olimex examples are for IAR, why are you using Keil?
"If the Olimex examples are for IAR, why are you using Keil?"
Cause school gave it to us...
but i know how to put something on the lcd screen, put led or pin on or off...
Gave what to you?
Keil?
The Olimex board?
If they gave you these things, they must have assumed that a competent student, at this point in the course, should be able to complete the assignment with them...
problem solved, solution: use examples from ST with the following settings:
#define USB_DISCONNECT GPIOC #define USB_DISCONNECT_PIN GPIO_Pin_11 #define RCC_APB2Periph_GPIO_DISCONNECT RCC_APB2Periph_GPIOC