cancel
Showing results for 
Search instead for 
Did you mean: 

Error find in libraries of STM32F4

n239955_st
Associate
Posted on August 11, 2016 at 10:02

Hi,

In file stm32f4xx.h from en.stsw-stm32068.zip 

#define  RCC_APB1RSTR_SPI2RST                ((uint32_t)0x00008000)

#define  RCC_APB1RSTR_SPI3RST                ((uint32_t)0x00010000)

is wrong !!

in the document DocID018909 Rev 12 , Reference manual for STM32F4 

RCC_APB1RSTR_SPI2RST is in bit 14 and not bit 15 

RCC_APB1RSTR_SPI2RST is in bit 15 and not bit 16 

2 REPLIES 2
Posted on August 11, 2016 at 10:50

This is a known and [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Incorrect%20definitions%20in%20older%20stm32f4xx.h&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=82]already fixed problem.

However, in the old firmware packages, the then-current versions of libraries etc. are perpetuated. I don't think there is a good solution to this sort of problems except adding a note to the bundle - but that is unlikely to be read anyway...

JW

Amel NASRI
ST Employee
Posted on August 11, 2016 at 12:01

Hi,

This bug is reported and should fixed in the appropriate way this time.

Sorry for such inconvenience.

-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.