Skip to content

MicroCS 1.17.0 — Long-run upload memory recovery

Choose a tag to compare

@github-actions github-actions released this 23 Oct 10:57
0421c94

Try it without installing anything: MicroCS Studio in Chrome or Edge, connected to a board flashed with one of the files below.

Board File How to flash
Raspberry Pi Pico / Pico 2 / Pico W / Pico 2 W / RP2040-Zero microcs-1.17.0-<board>.uf2 hold BOOTSEL, plug in, copy the file to the RPI-RP2 drive (pico_w / pico2_w files: Wi-Fi, sockets, HTTP client + server, WebSocket)
ESP32 / S2 / S3 / C2 / C3 / C5 / C6 / C61 / H2 / P4 microcs-1.17.0-<chip>.bin esptool.py --chip <chip> write_flash 0 microcs-1.17.0-<chip>.bin
STM32 Nucleo-F401RE / F411RE / F446RE / G474RE / L476RG / H743ZI microcs-1.17.0-nucleo_<board>.bin copy the file to the NOD_xxx drive of the Nucleo's ST-LINK (or STM32CubeProgrammer, .hex keeps your files); the console is the ST-LINK virtual COM port
STM32 Black Pill (F411CE) microcs-1.17.0-blackpill_f411ce.bin USB DFU (hold BOOT0, reset): dfu-util -a 0 -s 0x08000000:leave -D microcs-1.17.0-blackpill_f411ce.bin, or ST-LINK; console = USART1 (PA9 TX, PA10 RX) via a USB-serial adapter
Linux x64 mcs-1.17.0-<os>.tar.gz compiler, REPL and simulator: ./mcs --repl --sim
Threads Pico / Pico 2 / RP2040-Zero and ESP32 files run FreeRTOS (SMP on dual cores): Thread.RunOn(1, …) and jobs.cfg jobs use real threads; STM32 files are bare-metal
Radios ESP32: Wi-Fi + ESP-NOW and BLE where the chip supports them. S2: Wi-Fi + ESP-NOW only; H2: BLE only; P4: neither onboard radio. Pico W / Pico 2 W: Wi-Fi. Radios start when used by a script (or saved Wi-Fi autoconnect).
ESP32 storage migration Radio-enabled images use a larger app partition than the old no-Wi-Fi releases. Back up scripts before flashing: the storage partition moves and old files are not preserved.
ESP32-C2 note built for a 40 MHz crystal (ESP-IDF default); boards with a 26 MHz ESP8684 need a rebuild with CONFIG_XTAL_FREQ_26=y
Arduino IDE MicroCS-1.17.0.zip Sketch → Include Library → Add .ZIP Library
  • Separate short-lived compiler/VFS buffers from retained VM objects using
    opposite ends of the same fixed pool; preserve allocation accounting, OOM
    cleanup, live application state and GPIO/timer callbacks during compile checks.
  • Collect unreachable prior-run objects before the first idle source-file read.
  • Reduce 32-bit compiler tokens from 16 to 12 bytes while preserving numeric
    precision, source line/column diagnostics and string-prefix locations.
  • Add an optional compiler-scratch allocator, synchronized runtime wrappers and
    per-worker high-end scratch allocation without a second heap or larger pool.
  • Strengthen the larger-app regression to 2,000 content-edit/upload/check/run
    cycles with 7,500 extra bytes retained in the unchanged 64 KiB application pool.
    Local 10,000-cycle stress passes; the unchanged-main negative control fails on
    cycle 4 with a 512-byte OOM. The separate hard 40 KiB OLED gate remains intact.
  • Expand mixed-allocator, exhaustive OOM-recovery and diagnostic coverage. No
    language features, fonts or default execution ceilings are removed. Host
    simulation and sanitizer results do not substitute for physical-board validation.