Hi,
I use the board MCBSTM32Exl (http://www.keil.com/arm/mcbstm32exl/) and i wanna that my Board emulate a USB HID Keyboard (When i use the push-button User, the char 'Q' is send to my PC Host). For this, i studied the STMicroelectronics' library "USB full-speed device library" (www.st.com/.../um0424.zip) and adapted interruptions/GPIOs to use this Flibrary with my Board. Also, my PC recognize the device and i successed send data (I watched with a sniffer).
But, it's not like a keyboard, i tried to change the descriptor but it does'nt work (for exemple, my PC don't recognize the device)...
Have you any idea to help me ?
Regards, ealary.
Do you generate any key-up event?
My keyboard with the MCBSTM32Exl board work perfectly. But now, i need to emulate the Keyboard with a single microcontroller (STM32F103RC) into a protoboard to keep just the USB feature and can add more button. I have adapted the code of MCBSTM32 to the STM32F103RC. I modified the buttons placement with the EXTIs Line and the USB_DISCONNECT pin.
But when i connect the USB line, nothing is happen. My PC don't recognize the "device" and provide just the power into the protoboard. When i look the base board schematics of MCBSTM32, i see that the D+ and D- lines are PA11 and PA12 but i see nothing in the code about this lines...
How can i do to emulate my keyboard with the protoboard ?
Regards, Ealary
Check the pin connections. Connection requirements for your custom USB board are, 1) PA12 for D+ on USB connector (pin 3), PA11 for D- (pin 2) 2) PB14 for "USB Disconnect" circuitry (*1) 3) 8MHz crystal
(*1) I wrote it's PB15 in my first post, but it was wrong. On both boards (MCBSTM32Exl and STM3210E-EVAL), PB14 is the "USB Disconnect" pin.
Tsuneo
My pins connections is correct. That why i don't understand why my PC don't recognize the protoboard :/
How about other pins? 1) BOOT0 (pin 60) - GND 2) NRST (pin 7) - JTAG TRST
BOOT0 at GND NRST at JtagTRST...
It's not a firmware issue rather that hardware connection ?
Ealary.
> It's not a firmware issue rather that hardware connection ?
The difference of STM32F103RC from STM32F103ZG, related to your project, is just FLASH memory size. The binary of MCBSTM32Exl project should work on STM32F103RC.