2024-03-12 04:08 AM
Can anyone guide me if i am doing the correct way of combining 2 rams in linker script(attached with the message ) for my stm32 based micro controller - which is stm32wle5xx, any help would be much appreciated.
Solved! Go to Solution.
2024-03-15 07:33 AM - edited 2024-03-18 07:14 AM
Hello,
From performance/architectural point of view there is no constraint to use them as the same block (if SRAM1 = 32kB):
But you need to take care about some specificities of the security feature of each SRAM block:
2024-03-12 06:09 AM
Since the two memories (SRAM1 and SRAM2) are contiguous in memory, how you have it defined will work just fine.
2024-03-12 06:25 AM - edited 2024-03-12 07:28 AM
Hello,
It depends on your device. You need to check if your device has 32kB for SRAM1
According to RM0461 & DS13105:
So if SRAM1 size is 32kB this means SRAM1 and SRAM2 are contiguous and you can assume the two RAMs as a same block. If not, you can't combine them.
2024-03-13 10:31 PM
Hi Everyone ,
Thank you for your time and reply ,following are some of the things i had in mind to ask -
I will be attaching the STM 32 based microcontroller(STM32WLE5CC) which i am using with the link -
- https://www.st.com/en/microcontrollers-microprocessors/stm32wle5cc.html
2024-03-14 06:52 AM
There are no drawbacks.
If you keep them separate, you can access SRAM2 normally. If you combine them, you can still access SRAM2 normally.
All you are doing is telling the linker to act as if they are the same region. It only deals with addresses. It doesn't know or care than you are "combining" SRAM1 and SRAM2.
2024-03-15 07:33 AM - edited 2024-03-18 07:14 AM
Hello,
From performance/architectural point of view there is no constraint to use them as the same block (if SRAM1 = 32kB):
But you need to take care about some specificities of the security feature of each SRAM block: