# Increasing program file size

**URL:** <https://forum.makecode.com/t/increasing-program-file-size/4642>\
**Category:** micro:bit\
**Created:** [November 25, 2020, 4:26pm UTC](https://forum.makecode.com/t/increasing-program-file-size/4642 "2020-11-25T16:26:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KalbeAbbas](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kalbeabbas/32/560_2.png) [@KalbeAbbas](https://forum.makecode.com/u/KalbeAbbas)\
**Post date:** [November 25, 2020, 4:26pm UTC](https://forum.makecode.com/t/increasing-program-file-size/4642/1 "2020-11-25T16:26:02Z")

</div>

I am having compilation error that says **program too big by 16 bytes!**. How can I increase program size limit.

To replicate:

- Start new project
- Import this extension ([https://github.com/xinabox/pxt-in-the-air-microbit2.git](https://github.com/xinabox/pxt-in-the-air-microbit2.git))
- Paste this code in JS mode:  
ITR.connectToWifi(“ALongWiFiSSID”, “ALongWifiPassword”)
- Click Right click\>inspect\>console tab.
- Click download button on microbit editor, console will show the error.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c14b8e729dac5d4b15926f1cf5f925b8cf614f59.png)  
ITR.connectToATT(“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”, “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”)

```
    basic.forever(function () {

        ITR.IoTSendValueToATT(ITR.temperature(ITR.Temperature.Celcius), "temperature")

    })
```

---

<div class="post-metadata">

**Author:** ![joshkeys19](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/joshkeys19/32/2182_2.png) [@joshkeys19](https://forum.makecode.com/u/joshkeys19)\
**Post date:** [December 19, 2020, 4:40pm UTC](https://forum.makecode.com/t/increasing-program-file-size/4642/2 "2020-12-19T16:40:52Z")

</div>

Hi KalbeAbbas,

I have also been running into program memory issues. You can take a look at my post here:

> [@Program Memory](https://forum.makecode.com/t/program-memory/5068):
>
> Hi everyone, I’ve been developing a lot of code for the micro:bit IDE and am running into program memory issues. I’ve edited the pxtworker.js file under pxt-microbit\>node\_modules\>pxt-core\>built\>web\> At line 116592, i comment out the condition that checks too see if the program is too big: I then edit it to show me a bit more information. With that being said, I’m finding there are around 23K available out of a possible 242K of program space. What this implies (to me) is that we a…

From my findings, it appears the base code takes around 91% of program memory ever with a blank project (on a V1.x micro:bit). I’ve been looking for ways to reduce memory size while maintaining core functionality for students using it.

Maybe let me know if you’ve found anything and I’ll do the same.

Thanks,  
Josh

---

<div class="post-metadata">

**Author:** ![DaCatBlock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dacatblock/32/14813_2.png) [@DaCatBlock](https://forum.makecode.com/u/DaCatBlock)\
**Post date:** [April 26, 2024, 3:37pm UTC](https://forum.makecode.com/t/increasing-program-file-size/4642/3 "2024-04-26T15:37:40Z")

</div>

I realize this is a very old thread, but I’m running into the same problem. I was attempting to make an OS for the Micro:bit V2 a while back, and eventually hit a memory limit.

I, as joshkeys mentioned, also realized that the music functions take up a ton of memory. But it’s just unfortunate that there isn’t a lot of memory 😕
