cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to select RNG in boot & appli H7RS

Hamady
Senior

Hi,

 

I'm working on the STM32H7S7L86H with cube MX 6.17 and cube H7RS 1.3.0

I need to use RNG in appli and boot context but it is grayed because it accept only one context. It also block the usage of the hash module.

Any idea how to fix this ?

Thanks

Hamady_0-1776968113580.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @Hamady 

CubeMX uses this Boot/Application architecture to enforce clear ownership of sensitive peripherals, especially crypto resources like RNG and HASH, so that initialization, clocking, interrupts, and security attribution remain deterministic, isolated, and maintainable. The main idea is to avoid ambiguous generated code and unintended coupling between the boot domain and the application domain, which is particularly important in secure startup flows. As a consequence, CubeMX allows such peripherals to be assigned to only one context. If both boot and application must use the same peripheral, this is generally not handled by the code generator, and the second context must access it through manual code integration, with the user taking responsibility for proper clock enable, initialization sequence, reset/state handling, security configuration, and safe handover between boot and application.

Thx

Ghofrane 

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.

View solution in original post

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @Hamady 

CubeMX uses this Boot/Application architecture to enforce clear ownership of sensitive peripherals, especially crypto resources like RNG and HASH, so that initialization, clocking, interrupts, and security attribution remain deterministic, isolated, and maintainable. The main idea is to avoid ambiguous generated code and unintended coupling between the boot domain and the application domain, which is particularly important in secure startup flows. As a consequence, CubeMX allows such peripherals to be assigned to only one context. If both boot and application must use the same peripheral, this is generally not handled by the code generator, and the second context must access it through manual code integration, with the user taking responsibility for proper clock enable, initialization sequence, reset/state handling, security configuration, and safe handover between boot and application.

Thx

Ghofrane 

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.