cancel
Showing results for 
Search instead for 
Did you mean: 

*New* clock configuration via CubeMX vs *old* via clock configuration tool

mmensch
Associate II
Posted on November 27, 2015 at 16:42

Hi,

I just started a new project with STM32F207 but it should use a lot of software form an older project. Now I created a clock configuration with CubeMX and everything is different than with the old clock configuration tool. Before there was a routine in system_stm32f2xx.c called

SetSysClock which initilized what I entered in the excel sheet. Now it is not there any more and I can't even find where the clock system is initialized. There are so many routines includes into my new project.

Also other stuff is different like there is no more NVIC_Init.

Is there a documentation that explains the structure of the whole HAL and clock configuration esp. ?

Thanks

Martin
1 REPLY 1
Amel NASRI
ST Employee
Posted on December 03, 2015 at 08:40

Hi Mr_M_from_G,

Old clock configuration tool is usable only to set the clock parameters and configure it.

However, the new tool (CubeMX) is useful to initialize all the peripherals to be involved in your application and manage conflicts mainly in pins assignment.

So it is not the same approach used for both of them.

You have the following user manuals that may help you to understand Cube approach:

-

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00111485.pdf

: Getting started with STM32CubeF2 firmware package for STM32F2 Series

-

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00223149.pdf

: Description of STM32F2xx HAL drivers

-

http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00104712.pdf

: STM32CubeMX for STM32 configuration and initialization C code generation

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.