Fix K64F build: make heap overrides ZPU-only for tbasic, kilo, ed

The tbasic, kilo, and ed apps unconditionally overrode HEAPADDR/HEAPSIZE
with ZPU BRAM addresses (0x1FFF5000+0x33000=0x20028000) that exceed the
K64F app CODE region. Wrapped overrides in ifeq ($(__ZPU__),1) so K64F
builds use the default heap/stack calculated by build.sh.

Also disabled mbasic K64F build (heap overrides + code size exceed CODE
region) — mbasic was already disabled for ZPU.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Philip Smart
2026-03-16 12:18:55 +00:00
parent 900a30bdf6
commit c0d33737e1
4 changed files with 23 additions and 1 deletions

View File

@@ -41,10 +41,14 @@ APP_COMMON_DIR = $(CURDIR)/../common
BASEDIR = ../../..
# Override values given by parent make for this application as its memory usage differs from the standard app.
# Only apply for ZPU builds - these addresses are within the ZPU's unified BRAM address space.
# K64F uses the default heap/stack calculated by build.sh which fits within the Cortex-M4 SRAM regions.
ifeq ($(__ZPU__),1)
override HEAPADDR = 0x1FFF5000
override HEAPSIZE = 0x00033000
override STACKADDR = 0x20028000
override STACKSIZE = 0x00000000
endif
# Modules making up Kilo.
APP_C_SRC = basic_main.c basic_editor.c basic_exectoks.c basic_expr.c basic_tokens.c basic_utils.c $(APP_COMMON_DIR)/sysutils.c