2025-09-12 3:55 AM
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
}
2025-09-16 4:23 AM
Hello @x_ma_ryu_x,
according to the datasheet section 3.3.4 there are three regions of RAM:
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