how to enable DEBUG_printf on esp32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
piepie
Posts: 4
Joined: Tue Dec 11, 2018 3:24 am

how to enable DEBUG_printf on esp32

Post by piepie » Fri Dec 21, 2018 7:43 am

Hi,

I find it difficult to enable the DEBUG_printf output of those files under /py.
After these macros are set, errors occour like DEBUG_printf not defined in py/malloc.c etc.

378 // The mp_print_t printer used for debugging output
379 #ifndef MICROPY_DEBUG_PRINTER
380 #define MICROPY_DEBUG_PRINTER (&mp_plat_print)
381 #endif
382
383 // Whether to build functions that print debugging info:
384 // mp_bytecode_print
385 // mp_parse_node_print
386 #ifndef MICROPY_DEBUG_PRINTERS
387 #define MICROPY_DEBUG_PRINTERS (1)
388 #endif
399
390 // Whether to enable all debugging outputs (it will be extremely verbose)
391 #ifndef MICROPY_DEBUG_VERBOSE
392 #define MICROPY_DEBUG_VERBOSE (1)
393 #endif

It seems that DEBUG_printf works on the esp8266 port.
However, how could I make it also works on micropython core files?

Post Reply