| Author | beginning argument ( Replies received: 2 ) |
| valentin.longchamp |
Posted 05-02-2008 at 17:44   |

Registered on : 02-05-2008
Messages : 3
OFF-Line
|
I am developping a USB interface to the pump regulation module we have a designed.
I have downloaded the STM32F10xxx USB developer kit from your website, however, I am not able to test the applications on my IAR STM32-SK board, although I have correctly changed the GPIOs for this design.
The symptoms are that no USB configuration is ever chosen by the USB Host PC. The code hangs exactly at the same place as in this post: http://www.st.com/mcu/forums-cat-5797-12.html
UART0_Config_Default();
while (pInformation->Current_Configuration == 0) NOP_Process(); <-- here
bDeviceState = CONFIGURED;
What could this be related to ? Has someone already used this library on this development board ?
The IAR software system came with a USB example, I have taken the GPIOs configuration from their example, but their code is complex and badly written, I would strongly prefer to use THE STM32F10xxx USB developer kit, that is more cleaner and for which I have nearly already written all the code.
Thank you for your help.
Valentin
[ This message was edited by: valentin.longchamp on 05-02-2008 17:52 ]
|
|
|
Profile
Quote
|
| valentin.longchamp |
Posted 18-02-2008 at 12:08   |

Registered on : 02-05-2008
Messages : 3
OFF-Line
|
I have found the reason of this problem on the IAR STM32-SK dev board.
This is not a problem from ST USB lib that is just very fine.
The problem is that in the USBMouse example provided by IAR, there is a bug in their GPIO initialization and use for the USBConnectRed function. According to the schematics, the GPIO to use to enable the resistor is GPIOB Pin_1.
My problem, was that this was not enabled (use GPIO_Pin_RESET to enable the resistor), so the USBData+ line was never pulled up, so the host never saw the new device and the bus and thus initiated no setup transfers !
The IAR USBmouse example works by chance because their LCD initialization does enable the GPIOB Pin_1 into the correct state. So as soon as you remove the LCD part from their example, it does not work anymore.
I hope it may help someone else later
|
|
|
Profile
Quote
|
| swalker009 |
Posted 25-03-2008 at 00:34   |

Registered on : 03-25-2008
Messages : 1
OFF-Line
|
Hello Valentin,
I am having the same problem.
Can you tell me where you got the IAR USBMouse example so I can try it.
I have not been able to establish a USB connection with any of the sample projects.
Thanks
|
|
|
Profile
Quote
|