cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH_CR_SNB field has too many bits in stm32h503xx.h

Jochen0x90h
Associate

Hi!

I found a bug in stm32h503xx.h (version 2023)

 

The SNB field has too many bits:

#define FLASH_CR_SNB_Msk (0x7FUL << FLASH_CR_SNB_Pos)
 
Correct is only three according to the reference manual (8 pages of 8K flash), therefore it should be
#define FLASH_CR_SNB_Msk (0x07UL << FLASH_CR_SNB_Pos)
 
With kind regards,
Jochen
1 REPLY 1
Mahmoud Ben Romdhane
ST Employee

Hello @Jochen0x90h 

 

Let me thank you for posting and welcome to the ST Community.

Your request is under investigation, and I will get back to you ASAP.

 

Thanks.

Mahmoud

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.