cancel
Showing results for 
Search instead for 
Did you mean: 

stm32WB15 RAM problem. I need to configure to use more RAM1

x_ma_ryu_x
Associate

Hey here is my FLASH.ID :  I want to use more of the ram . I am using : STMicroelectronics Arm Cortex-M4 MCU, 320KB flash, 48KB RAM, 64 MHz, 1.71-3.6V, 30 GPIO, UFQFPN48   STM32WB15CCU6 .. So i should have more RAM. but I am nor sure how to adjust the memory so I can use it.  Currently as you can see. I am using the p2p OTA example, in which initially the FLASH was configured to be very small, and i extended that, but now the RAM is twice as less than what i should be able to use . Can you help me with this? Thanks!

MEMORY

{

FLASH (rx) : ORIGIN = 0x08007000, LENGTH = 135K

RAM1 (xrw) : ORIGIN = 0x20000008, LENGTH = 0x2FF8

RAM_SHARED (xrw) : ORIGIN = 0x20030000, LENGTH = 10K

}

x_ma_ryu_x_0-1757674334924.png

 

1 REPLY 1
grohmano
ST Employee

Hello @x_ma_ryu_x,

according to the datasheet section 3.3.4 there are three regions of RAM:

  • SRAM1: 12 Kbytes mapped at address 0x2000 0000
  • SRAM2a: 32 Kbytes located at address 0x2003 0000 also mirrored at 0x1000 0000,
    with hardware parity check
  • SRAM2b: 4 Kbytes located at address 0x2003 8000 (contiguous with SRAM2a) and
    mirrored at 0x1000 8000 with hardware parity check

SRAM2a and SRAM2b can be write-protected, with 1-Kbyte granularity. A section of the
SRAM2a and SRAM2b is secured for the RF sub-system and cannot be accessed by the
host CPU1.
The SRAMs can be accessed in read/write with 0 wait states for all CPU1 and CPU2 clock
speeds.

So, back to your question if you can use more of RAM1. No, you can't.

For more information about detailed memory map, please refer to mentioned datasheet or the reference manual RM0473