Increasing program file size

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)
  • 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.


ITR.connectToATT(“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”, “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”)

    basic.forever(function () {

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

    })

Hi KalbeAbbas,

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

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

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 :confused: