Topic : RCC error

Forum : ARM

Original Post
Post Information Post
February 9, 2013 - 11:29am
Guest

Hello

I have installed the latest version of tools from the ride site.

To try them out I opened the toggle example. Worked fine. CPU is STM32f103

When I try to push the speed up 72mhz I get this.
C:\Raisonance\Ride\Examples\ARM\Primer\Primer\toggle\main.c:128:15: error: 'RCC_PLLSource_HSE_Div1' undeclared (first use in this function)

from the line

RCC_PLLConfig(RCC_PLLSource_HSE_Div1, RCC_PLLMul_9); //8mHz external oscillator 8mhzx9=72mhz

I have done this before with the early versions and it has worked.

In the rrc.h header I see:-

#ifndef STM32F10X_CL
#define RCC_PLLSource_HSE_Div1 ((uint32_t)0x00010000)
#define RCC_PLLSource_HSE_Div2 ((uint32_t)0x00030000)
#define IS_RCC_PLL_SOURCE(SOURCE) (((SOURCE) == RCC_PLLSource_HSI_Div2) || \
((SOURCE) == RCC_PLLSource_HSE_Div1) || \
((SOURCE) == RCC_PLLSource_HSE_Div2))
#else

If I put:-
#define RCC_PLLSource_HSE_Div1 ((uint32_t)0x00010000) in main it works fine.

How do get the:-
#ifndef STM32F10X_CL etc….
to compile along with the rest of the code?

Geoff

Replies
Post Information Post
+1
0
-1
February 11, 2013 - 2:31pm
Raisonance Support Team

Hello,
Effectively there is a bug in this example.
It will be fixed in the next release. In the mean time you can correct it by yourself.
In the GCC compiler you should define "STM32F10X_MD;USE_STDPERIPH_DRIVER" in the Defines field.

Regards,

Etienne