cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube_FW_F4 firmware library does not updated.

just4you
Associate II
Posted on June 25, 2015 at 10:58

I use the STM32CubeMX 4.8 version and update the firmware package for Family STM32F4 1.6.0.

However, the source code of the library is 1.3.1.

I also use the STM32CubeF4 1.6.0 but it is the same version of STM32CubeMX 4.8.

The

STM32F4 DSP and standard peripherals library

is currently 1.5.1.

Why the difference is occured between the libraries?

Moreover, the STM32CubeF4 1.6.0 library has clock configuration bug.

I hope this problem would be solved as soon as possible.

#config #clock #bug #stm32cubemx #stm32cubef4
3 REPLIES 3
chrif
Associate II
Posted on June 25, 2015 at 16:55

Hello,

1-What do you mean by ''source code of the library is 1.3.1''?

2-Maybe you make a confusion, STM32CubeF4 1.6.0 is the firmware for CubeMx, and it has no relation with Standard Peripherals Library.They are two different libraries that may be used to develop applications for STM32 F4 series (for example).

3-Could you explain more the ''clock configuration bug''?

just4you
Associate II
Posted on June 26, 2015 at 05:06

1. The ''Release_Notes.html'' of STM32Cube_FW_F4_V1.6.0 library notice the version

    (\STM32Cube_FW_F4_V1.6.0\Drivers\STM32F4xx_HAL_Driver\Release_Notes.html)

    Moreover, the description of the library's source code show the version at the top.

2. I got the version difference of between the CubeMX library and Standard Peripheral library.

3. The clock configuration bug.

    26MHz HSE but the HAL_RCC_GetHCLKFreq() in the SystemClock_Config() does not display the 180MHz.

    The SystemClock_Config() function in the main() should configure correctly.

    However, the watch result is wrong.

    (The other hands, the result of using Standard library shows 180MHz)

0690X00000605hYQAQ.png

0690X00000603kxQAA.png

0690X00000605hJQAQ.png

just4you
Associate II
Posted on June 26, 2015 at 07:18

Obviously, this is the bug of STM32CubeMX clock generation.

I upload the 2 files.

- the

original generated system_stm32f4xx.c file

- the

modifiedsystem_stm32f4xx.c file

There are no clock setting code in the SysInit() function.

SetSysClock() function is omitted in the generated code.

________________

Attachments :

system_stm32f4xx_modified.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzSV&d=%2Fa%2F0X0000000bM6%2F_puwMpPY.Ai3LO25.9ZbzGoek15zTxPaCazkb899vcE&asPdf=false

system_stm32f4xx_original.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzSQ&d=%2Fa%2F0X0000000bM7%2F9vX6c9Qk8WI.43DtWykIbDCgpO4F5TbPrHWHtjm6fJA&asPdf=false