Skip to main content
sra
Associate
March 15, 2023
Question

In STM32L562VET6Q Microcontroller in that my question is how to configure/map SRAM 2 memory address as 0x2003 0000, so , i can use it as contiguous memory of both SRAM 1 and SRAM 2 i need big size continuous memory block.

  • March 15, 2023
  • 1 reply
  • 665 views

"64 Kbytes located at address 0x0A03 0000 with hardware parity check (SRAM2). This memory is also mapped at address 0x2003 0000 offering a contiguous address space with the SRAM1"

This topic has been closed for replies.

1 reply

Bubbles
ST Employee
March 20, 2023

Hi @sra​ ,

look at the memory map figure in the reference manual (chapter 2.3.2).

The same physical memory is accessed on different address ranges depending on the access type. Non-secure or non-secure callable for code, non-secure or secure if data.

If the TZ on your device is disabled or configured to have the SRAM2 non-secure, you should be able to access the SRAM2 at 0x2003 0000.

BR,

J

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.