Repository navigation
Repeat Upload OLED Regression
Functionally transcribed from the reported two-file application (whitespace
normalized). It deliberately retains the original menu/index logic, GPIO callback
and Timer.Start(0, 1000000, ReadEncoderRotary). This is not the smaller
oled_menu fixture used by the separate 40 KiB budget gate.
tests/c/test_oled_repeat.c uploads these sources to a temporary POSIX VFS,
changes a compiled string literal as well as trailing whitespace, checks without
execution, launches /app.cs as a Project, and exercises both callbacks for
2,000 cycles without replacing the VM. An additional 7,500-byte string is
kept live in the VM pool to reproduce the narrow-headroom fragmentation case;
this is not an uncounted host allocation.
The display provider is resolved through using App.Display, not run separately.
The host filesystem models off-pool flash storage; source-read/compiler buffers,
VM objects and U8g2 display storage remain charged to the application pool.
Run the hard 64 KiB 32-bit gate with:
make fetch-u8g2
make oled-repeat-test CC="gcc -m32 -malign-double" \
CFLAGS="-O2 -g -DOLED_REPEAT_HEAP_KB=64 -DOLED_REPEAT_BUDGET=1" \
U8G2_DISPLAYS="ssd1306_i2c_128x32_univision" \
U8G2_FONTS="helvR08_tf streamline_all_t ncenB08_te"A normal 64-bit host defaults to a separate 128 KiB pool, because object sizes are different. Neither host test measures total board RAM or physical hardware.
For longer stress runs add -DOLED_REPEAT_CYCLES=10000 to CFLAGS.
OLED_REPEAT_LIVE_BYTES can vary the extra retained state (default 7,500).
The title edit uses a stable source offset and does not manufacture new global
names each cycle. Assertions cover non-executing builds, preserved app identity,
live callbacks, bounded warm pool usage and zero pool usage after shutdown.
Generated from the MicroCS repository (source branch · revision 37bd1f1). Edit the source files, not the wiki.
Start here
Step-by-step guides
- Guides
- Guide PC Simulator
- Guide ESP32
- Guide ESP32 C3 OLED
- Guide Raspberry Pi Pico
- Guide STM32
- Guide Arduino
- Guide Zephyr
- Guide Peripheral Settings
- Guide DMA
Hardware
- Hardware API
- Power Management
- Bluetooth LE
- CAN Bus
- Rotary Encoders
- Peripheral Configuration
- DMA
- Device Drivers
- Wi Fi and Networking
- U8g2 Displays
- LVGL Graphics
- Filesystem
- Threads
- Scheduler
Ports
- Porting and Build Systems
- Port ESP32
- Port RP2040 RP2350
- Port STM32
- Port STM32 Firmware
- Port Zephyr
- Port NuttX
- Port Arduino
C# and the runtime
- Language
- Standard Library
- JSON
- Standalone Firmware
- MicroCS Studio
- Web Flasher
- Studio Template Authoring
- Examples
- LVGL Examples
Embedding and tuning
- Embedding
- Configuration
- Small MCUs
- Memory Budgets
- Low RAM Firmware Example
- Performance
- Runtime Benchmark Comparison
- Lua Host Benchmark
Internals
Project