How to enable system logs in webrepl/dupterm #15109
Unanswered
eLEcTRiCZiTy
asked this question in
Core Development
Replies: 1 comment 5 replies
-
On esp platforms, C printf / esp log go directly to the IDF configured serial out (as you've seen), micropython stdout is not involved. In C, you should be able to use |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When Micropython runs under FreeRTOS (and probably similar too) and tasks using the printf or some system logging library like esp_log for an ESP32, the printout message is shown in normal repl but it is missing in webrepl or dupterm-ed repl provided through some interface.
I need to debug an embedded system with ESP32 over WAN using REPL, but without system logs printouts It is impossible. Any library written in C looks silent even when printing errors or debug printouts on the standard output using the printf.
Is there a way to enable system printouts?
I tried to redirect ESP32 log vprintf and dupterm to stream written in Python but I failed when gc_alloc called from some system task caused CPU core panic. I can't find what changes the behavior that duplicated repl does not show system prints.
Best regards,
Electry
Beta Was this translation helpful? Give feedback.
All reactions