Software › MakeCode: Flashing Heart (CODAL)
MakeCode: Flashing Heart (CODAL)
A real MakeCode "flashing heart" program compiled with the OPEN MakeCode toolchain (the makecode CLI) for micro:bit v1 — the same CODAL/DAL C++ runtime the online editor ships. Its .hex is laid out over the Nordic SoftDevice (app at flash 0x18000); we do NOT ship Nordic's proprietary SoftDevice binary — it is STRIPPED and its SVC ABI is high-level-emulated in JavaScript (microbit-softdevice.js). On boot the board boots from the app vector table at 0x18000, relocates the interrupt vectors there, forwards the nRF51 peripheral IRQs to the app, and claims the sd_* SVCs (sd_softdevice_is_enabled, sd_nvic_*, sd_flash_*, clock/RNG, sd_ble_* stubs). The CODAL runtime boots and runs on the emulated Cortex-M0, RENDERS and animates the flashing heart on the 5x5 matrix (the DAL LED-refresh is driven by the real CODAL system-timer strobe on the TIMER1 us-ticker COMPARE0 interrupt), and the ARM debugger single-steps the real CODAL Thumb code. BLE / the micro:bit radio remain stubbed (no real RF) — see the Notes / README.
Format: nRF51 flash image (stock MakeCode/CODAL app; SoftDevice HLE'd) · By: Microsoft MakeCode / Lancaster University; program by emulators.org · Licence: MIT (CODAL / microbit-dal + pxt-microbit); program CC0