cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH_CR_SNB field has too many bits in stm32h503xx.h

Jochen0x90h
Visitor

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
0 REPLIES 0