Problem when using library of USB HID device for STM32

Discuss with MikroElektronika software developers about current library development.
Post Reply
Author
Message
k_valera59
Posts: 8
Joined: 21 Feb 2013 12:03

Problem when using library of USB HID device for STM32

#1 Post by k_valera59 » 30 Dec 2014 10:55

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

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

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

#2 Post by marina.petrovic » 05 Jan 2015 14:51

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

k_valera59
Posts: 8
Joined: 21 Feb 2013 12:03

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

#3 Post by k_valera59 » 06 Jan 2015 11:38

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.

yaya
Posts: 1
Joined: 15 Apr 2015 20:26

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

#4 Post by yaya » 15 Apr 2015 21:18

hello,
i have problèm to add the API MYSQL to microC for arm , can you help me please ??

Post Reply

Return to “Library Development Discussion”