- Default disable the debug interface.
If you want to enable debug trace on Serial1 to debug corelib, follow these instructions.
- Shut down the IDE
- Go to Arduino15 directory
- Windows:
C:\Users\<user>\AppData\Roaming\Arduino15
- OS X:
~/Library/Arduino15
- Linux:
~/.arduino15
- Modify the platform.txt
- Find
compiler.c.flags
and add-DCONFIGURE_DEBUG_CORELIB_ENABLED
at the end of this line - Find
compiler.cpp.flags
and add-DCONFIGURE_DEBUG_CORELIB_ENABLED
at the end of this line
- Initial Serial1 in your sketch
- Add
Serial1.begin(115200);
in yoursetup()
- Adjust the output level at log_init function in log.c