Page 1 of 1

Problem when using library of USB HID device for STM32

Posted: 30 Dec 2014 10:55
by k_valera59
All hi and happy New Year!
There is a device with MCU STM32F103RC, HSE OSC crystal 12 MHZ, USBclock = PLLx4 (48 MHZ), PCLK1=12 MHZ.
I try an example with use of USB Library mikroBasic for ARM 3.0.0 "HID_Read_Write_Polling" (USB HID Read & Write Test) with HID Terminal.
Device is defined as unknown USB Device!
Help to understand what a problem?
Maybe it is necessary to make any changes in module Descriptor?
The same example with use of a board
STM32F4-Discovery (MCU STM32F407VG) works!

Best regards, Valery

Re: Problem when using library of USB HID device for STM32

Posted: 05 Jan 2015 14:51
by marina.petrovic
Hi,

Please, to be sure, update your compiler, mikroBasic PRO for ARM.
Last version of our compiler is v4.5.0 and can be downloaded from our Website: http://www.mikroe.com/mikrobasic/arm/

If you want to adjust existing example from compiler for MCU which you use,
you need to adjust every part of the example with the help of STM32F103RC Reference Manual.
http://www.st.com/st-web-ui/static/acti ... 171190.pdf

First double check your oscillator settings in Project -> Edit Project to be sure (check which clock should be used for proper USB communication).

Best regards,
Marina

Re: Problem when using library of USB HID device for STM32

Posted: 06 Jan 2015 11:38
by k_valera59
Hi !
Thanks for the help. I, seem solved a problem. I not correctly realized program pull-up of an input of the DP USB interface.
Best regards,
Valery.

Re: Problem when using library of USB HID device for STM32

Posted: 15 Apr 2015 21:18
by yaya
hello,
i have problèm to add the API MYSQL to microC for arm , can you help me please ??