# How to find how much RAM memory is used on my micro:bit using makecode?

**URL:** <https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303>\
**Category:** micro:bit\
**Created:** [February 29, 2020, 11:00am UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303 "2020-02-29T11:00:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lovro-sinda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lovro-sinda/32/660_2.png) [@lovro-sinda](https://forum.makecode.com/u/lovro-sinda)\
**Post date:** [February 29, 2020, 11:00am UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/1 "2020-02-29T11:00:15Z")

</div>

I wrote code for my micro:bit in [makecode.microbit.org](http://makecode.microbit.org). Idea is to use radio communication and send each micro:bit message. So my question at first was how many messages can get just one micro:bit?

Internet say this:  
Messages received are read from a queue of configurable size (the larger the queue the more RAM is used). If the queue is full, new messages are ignored. Reading a message removes it from the queue.

So my question is: how to find how much RAM memory is used on my micro:bit using makecode?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [February 29, 2020, 3:45pm UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/2 "2020-02-29T15:45:47Z")

</div>

The queue is 5 messages.

---

<div class="post-metadata">

**Author:** ![lovro-sinda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lovro-sinda/32/660_2.png) [@lovro-sinda](https://forum.makecode.com/u/lovro-sinda)\
**Post date:** [February 29, 2020, 4:07pm UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/3 "2020-02-29T16:07:27Z")

</div>

How do you know that?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [February 29, 2020, 6:18pm UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/4 "2020-02-29T18:18:41Z")

</div>

Here it is: [https://github.com/lancaster-university/microbit-dal/blob/2cff906f019944ae15d532157c1301c940f67862/source/drivers/MicroBitRadioDatagram.cpp#L193](https://github.com/lancaster-university/microbit-dal/blob/2cff906f019944ae15d532157c1301c940f67862/source/drivers/MicroBitRadioDatagram.cpp#L193)

---

<div class="post-metadata">

**Author:** ![lovro-sinda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lovro-sinda/32/660_2.png) [@lovro-sinda](https://forum.makecode.com/u/lovro-sinda)\
**Post date:** [March 1, 2020, 11:28am UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/5 "2020-03-01T11:28:59Z")

</div>

Is there anyway I can change it?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [March 2, 2020, 5:02pm UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/6 "2020-03-02T17:02:22Z")

</div>

Currently not configurable. Please follow with [support.microbit.org](http://support.microbit.org) for a feature request.

---

<div class="post-metadata">

**Author:** ![lovro-sinda](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lovro-sinda/32/660_2.png) [@lovro-sinda](https://forum.makecode.com/u/lovro-sinda)\
**Post date:** [March 2, 2020, 5:45pm UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/7 "2020-03-02T17:45:11Z")

</div>

Can you please write my code that show me a number of element in queue so that I can know which message will be lost?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [March 3, 2020, 1:44am UTC](https://forum.makecode.com/t/how-to-find-how-much-ram-memory-is-used-on-my-micro-bit-using-makecode/1303/8 "2020-03-03T01:44:06Z")

</div>

Please use [support.microbit.org](http://support.microbit.org) .
