diff --git a/cc3200/bootmgr/bootloader.mk b/cc3200/bootmgr/bootloader.mk index 637a087a71..da02a02d07 100644 --- a/cc3200/bootmgr/bootloader.mk +++ b/cc3200/bootmgr/bootloader.mk @@ -60,8 +60,7 @@ BOOT_MAIN_SRC_S = \ bootmgr/runapp.s BOOT_PY_SRC_C = $(addprefix py/,\ - pfenv.c \ - pfenv_printf.c \ + mpprint.c \ ) BOOT_STM_SRC_C = $(addprefix stmhal/,\ diff --git a/cc3200/bootmgr/main.c b/cc3200/bootmgr/main.c index c1a64b84ad..8dc37b4a42 100644 --- a/cc3200/bootmgr/main.c +++ b/cc3200/bootmgr/main.c @@ -347,3 +347,12 @@ int main (void) { } } +//***************************************************************************** +//! The following stub function is needed to link mp_vprintf +//***************************************************************************** +#include "py/qstr.h" + +const byte *qstr_data(qstr q, mp_uint_t *len) { + *len = 0; + return NULL; +}