Skip to main content
JTLGE
Associate III
Apr 14, 2022 9:41 AM UTC
Question

How much ram is available on the micro to allocate a buffer?

Hi,

I'm using the SWIN SensorTile Wireless Industrial Node development board that has an Ultra-low-power ARM Cortex-M4 MCU at 120 MHz with FPU, 2048 kbytes Flash memory (STM32L4R9).

On this micro I am using a freertos middleware that I use to manage tasks.

How can I know how much ram I have available to make a buffer in which to allocate data that I read from an accelerometer and then read the buffer and forward it on a serial line?

thanks in advance

This topic has been closed for replies.

1 reply

MM..1
Super User
Apr 14, 2022 12:07 PM UTC

R9 have 640kB RAM, then you can arange buffers in this range minus reserved heap for freertos...

But memory is in some regions with or without DMA access, then check datasheet.