/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / demo help

Username:     
Password:     
             

Forum

# 1   2009-09-09 06:52:26 demo help

peedho
New member
Registered: 2009-08-04
Posts: 4

demo help

i am trying to get the joystick mouse standalone demo running and it is now recognised as a usb device with no drivers by the device manager. i tried to reinstall the recommended drivers and it said an error occured during installation of the device. The installation failed because a function driver was not specified for this device instance.
What exactly am i doing wrong? i realised that the software assigned PD.9 as the usb disconnect pin instead of the PD.3 as specified in the hardware. i corrected that. i have been trying to get this demo running for a while with no sucess.i am interested in creating usb applications that are not based on the circleos. Please help i am really becoming to dislike working with the primer.

Offline

 

# 2   2009-09-09 15:21:33 demo help

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: demo help

The ST libraries changed several times, and it is sometimes difficult to follow them, and to update the applications.
We are (today) releasing a new RKitARM (+required RIDE7) that works by default on the new ST library. We will also update very soon the main application published by Raisonance to make them commpliant with these new ST libraries...
This new application should work without any change.
Now, if you want to load the 'standalone' driver from ST, you will have several thing to change. You found the IO-pin, but the main change concerns the HSE clock frequency that is by default at  8MHz for the ST eval board, and 12MHz on the Primers. I guess your problem is there...

Offline

 

# 3   2009-09-10 12:51:32 demo help

peedho
New member
Registered: 2009-08-04
Posts: 4

Re: demo help

thank you for your response.pliz shed more light on the hse

Offline

 

# 4   2009-09-10 13:46:40 demo help

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: demo help

The HSE value has to be defined as a C macro in one of the ST-library header file. You should modify the value (12.000MHz  instead of 8.000MHz) and recompile the files.

Offline

 

# 5   2009-09-10 22:35:16 demo help

satishgn
Member
From: Mumbai, India
Registered: 2009-04-24
Posts: 11

Re: demo help

Please follow these 2 steps:

1)Update the HSE value in Libraries\CMSIS\Core\CM3\stm32f10x.h (Note: This is readonly file)

#define HSE_Value    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz*/

To

#define HSE_Value    ((uint32_t)12000000) /*!< Value of the External oscillator in Hz*/

2)Update the clock settings(for 72 Mhz operation) as follows:

Change the following line between {... xxx ...} in Libraries\CMSIS\Core\CM3\system_stm32f10x.c (Note: This is readonly file)

static void SetSysClockTo72(void) {
...
/*!< PLLCLK = 8MHz * 9 = 72 MHz */
RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC | RCC_CFGR_PLLMULL9);
...
}

To

static void SetSysClockTo72(void) {
...
RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC | RCC_CFGR_PLLMULL6); /*!< PLLCLK = 12MHz * 6 = 72 MHz */
...
}

Both these steps should fix your USB issue provided the USB Disconnect pin is configured correctly.
All the Best ! I give a full thumbs up to Primer2 for its simplicity, low cost & a way to master STM32.

Last edited by satishgn (2009-09-10 22:48:55)

Offline

 

# 6   2009-09-22 10:41:20 demo help

peedho
New member
Registered: 2009-08-04
Posts: 4

Re: demo help

thank you very much francis and satishgn.i am motivated to master the stm32 more.thank you very much.

Offline

 

Board footer