New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use DEBUG_VERBOSE to build micropython? #3732
Comments
lib/util/printf.c has a definition of DEBUG_printf if MICROPY_DEBUG_PRINTERS is 1, but there are probably other ways, I assume -DDEBUG_printf=printf or so might also do the trick, not tested though |
Weird, didn’t noticed this flag, thanks very much for the help :)
--
Narcissus Emi
日時: 2018年4月20日 18:25:58, stinos (notifications@github.com) が書きました::
… lib/util/printf.c has a definition of DEBUG_printf if
MICROPY_DEBUG_PRINTERS is 1, but there are probably other ways, I assume
-DDEBUG_printf=printf or so might also do the trick, not tested though
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3732 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB4zft_n1XZmS5frSo_AGKtc37w_HN4iks5tqbe2gaJpZM4TdNNr>
.
|
The esp32 port doesn't use the internal (uPy-provided) printf code because it has its own printf that it needs to use. You might need to add your own implementation of DEBUG_printf, just copy that in lib/utils/printf.c Note that you can do |
Got it working right now, that really helps, thx very much for the help :) |
could you please tell me how |
adding CP-Sapling
Hi,
I've written a C based python module for esp32, and after I have it compiled in the firmware, it said cannot find module. I did check there's module.o in application.map, and I've checked builtinimport there's a debug arguments named MICROPY_DEBUG_VERBOSE in the code. So I added -DMICROPY_DEBUG_VERBOSE in the makefile, but it failed to compile with error
malloc.c:(.text.m_malloc_maybe+0x18): undefined reference to
DEBUG_printf' build/py/malloc.o:malloc.c:(.text.m_malloc_with_finaliser+0x1f): more undefined references to
DEBUG_printf' followMakefile:844: recipe for target 'build/application.elf' failed
So I'm wondering how to use this DEBUG VERBOSE flag?
The text was updated successfully, but these errors were encountered: