Skip to main content
Associate
July 19, 2025
Question

FLASH_CR_SNB field has too many bits in stm32h503xx.h

  • July 19, 2025
  • 2 replies
  • 312 views

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

2 replies

Technical Moderator
July 21, 2025

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.

For more investigation, I suggest please that you provide the MCU reference.

 

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.
Associate
August 26, 2025

Hello Mahmoud,

 

which MCU reference do you need? The stm32h503xx.h header file is provided by ST for all STM32H503 devices. Was it possible to confirm and fix the bug?

 

Jochen

Technical Moderator
September 5, 2025

Hello @Jochen0x90h ,

 

I was able to reproduce your request.

Thank you for bringing this issue to our attention.

An internal Ticket was submitted to the Development Team (Internal Ticket Number:216961 ).

I will keep you up to date when the problem is solved.

 

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.