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:
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:
[image]
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