- 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.flagsand add-DCONFIGURE_DEBUG_CORELIB_ENABLEDat the end of this line - Find
compiler.cpp.flagsand add-DCONFIGURE_DEBUG_CORELIB_ENABLEDat 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