From a424c45f27b482f6bc5c9d48aa8cfe6b1c2c9b5e Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Fri, 7 Mar 2025 15:45:50 -0800 Subject: [PATCH] two places to change --- pxtcompiler/emitter/hexfile.ts | 2 +- pxtlib/cpp.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pxtcompiler/emitter/hexfile.ts b/pxtcompiler/emitter/hexfile.ts index 3d9c7fde8627..7e55d32dd7e0 100644 --- a/pxtcompiler/emitter/hexfile.ts +++ b/pxtcompiler/emitter/hexfile.ts @@ -370,7 +370,7 @@ namespace ts.pxtc { checkFuns(); return - + // TODO: read in the top of flash function readPointers(s: string) { let step = opts.shortPointers ? 4 : 8 while (s.length >= step) { diff --git a/pxtlib/cpp.ts b/pxtlib/cpp.ts index c01c39ee6bbb..92a2ad97e513 100644 --- a/pxtlib/cpp.ts +++ b/pxtlib/cpp.ts @@ -1090,6 +1090,8 @@ namespace pxt.cpp { if (compile.uf2Family) pxtConfig += `#define PXT_UF2_FAMILY ${compile.uf2Family}\n` + // TODO: C++ generation for adding in top of flash from CODAL + // TODO: do we need a special include to get the TOP_OF_FLASH from codal? res.generatedFiles[sourcePath + "pointers.cpp"] = includesInc + protos.finish() + abiInc + pointerIncPre + pointersInc + "\nPXT_SHIMS_END\n" res.generatedFiles[sourcePath + "pxtconfig.h"] = pxtConfig