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