Skip to content
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

Add runtime update of Debug Level and display settings. #46

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

robroypt
Copy link

@robroypt robroypt commented Sep 6, 2024

Listen to the serial port used for debug messages to accept run-time updates of Debug Level and toggle of display options.

Accepted commands. Enter

  • V or VERBOSE
  • D or DEBUG
  • I or INFO
  • W or WARNING
  • E or ERROR
  • N or NONE

Toggles, enter

  • L or LABEL
  • T or TIMESTAMP
  • C or NEWLINE (C for Carriage Return as 'N' already used)

Listen to the same serial port used for debug output to switch Debug Level.

Enter V,D,I,W,E or VERBOSE, DEBUG, INFO, WARNING, or ERROR terminated by
a new line/Line feed ('\n) character. CRLF ('\r\n') works as well.

NOTE: Check your serial monitor or terminal settings is configured to send a line ending of new line/Line feed ('\n' or '\r\n') at the end of the string.
Listen to the same serial port used for debug output to switch Debug Level and other config.

Use VERBOSE, DEBUG, INFO, WARNING, ERROR, NONE or V,D,I,W,E,N. to change debug level, or LABEL, TIMESTAMP, NEWLINE or L,T,N to toggle config settings.

Terminate command with a Line feed ('\n) or CRLF ('\r\n')
Change shortcut for NEWLINE command from N to C (N used for debug level NONE)
@CLAassistant
Copy link

CLAassistant commented Sep 6, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

github-actions bot commented Sep 6, 2024

Memory usage change @ 2620270

Board flash % RAM for global variables %
arduino:avr:leonardo 🔺 +1178 - +1180 +4.11 - +4.12 🔺 +510 - +510 +19.92 - +19.92
arduino:avr:mega 🔺 +1166 - +1166 +0.46 - +0.46 🔺 +508 - +508 +6.2 - +6.2
arduino:avr:nano 🔺 +1160 - +1162 +3.78 - +3.78 🔺 +508 - +508 +24.8 - +24.8
arduino:esp32:nano_nora 🔺 +1128 - +1128 +0.04 - +0.04 🔺 +32 - +32 +0.01 - +0.01
arduino:mbed_giga:giga 🔺 +984 - +984 +0.05 - +0.05 🔺 +32 - +32 +0.01 - +0.01
arduino:mbed_nano:nano33ble 🔺 +984 - +984 +0.1 - +0.1 🔺 +32 - +32 +0.01 - +0.01
arduino:mbed_nano:nanorp2040connect 🔺 +1041 - +1041 +0.01 - +0.01 🔺 +40 - +40 +0.01 - +0.01
arduino:mbed_nicla:nicla_vision 🔺 +984 - +984 +0.05 - +0.05 🔺 +32 - +32 +0.01 - +0.01
arduino:mbed_opta:opta 🔺 +984 - +984 +0.05 - +0.05 🔺 +40 - +40 +0.01 - +0.01
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A
arduino:megaavr:nona4809 🔺 +1165 - +1167 +2.37 - +2.37 🔺 +32 - +32 +0.52 - +0.52
arduino:renesas_portenta:portenta_c33 🔺 +1032 - +1032 +0.05 - +0.05 🔺 +36 - +36 +0.01 - +0.01
arduino:renesas_uno:unor4wifi 🔺 +1048 - +1048 +0.4 - +0.4 🔺 +36 - +36 +0.11 - +0.11
arduino:sam:arduino_due_x_dbg 🔺 +1592 - +1592 +0.3 - +0.3 N/A N/A
arduino:samd:mkrzero 🔺 +1056 - +1056 +0.4 - +0.4 🔺 +36 - +36 +0.11 - +0.11
Click for full report table
Board examples/Arduino_Debug_Basic
flash
% examples/Arduino_Debug_Basic
RAM for global variables
% examples/Arduino_Debug_Advance
flash
% examples/Arduino_Debug_Advance
RAM for global variables
%
arduino:avr:leonardo 1180 4.12 510 19.92 1178 4.11 510 19.92
arduino:avr:mega 1166 0.46 508 6.2 1166 0.46 508 6.2
arduino:avr:nano 1162 3.78 508 24.8 1160 3.78 508 24.8
arduino:esp32:nano_nora 1128 0.04 32 0.01
arduino:mbed_giga:giga 984 0.05 32 0.01
arduino:mbed_nano:nano33ble 984 0.1 32 0.01
arduino:mbed_nano:nanorp2040connect 1041 0.01 40 0.01
arduino:mbed_nicla:nicla_vision 984 0.05 32 0.01
arduino:mbed_opta:opta 984 0.05 40 0.01
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:mbed_portenta:envie_m7:target_core=cm4 N/A N/A N/A N/A
arduino:megaavr:nona4809 1167 2.37 32 0.52 1165 2.37 32 0.52
arduino:renesas_portenta:portenta_c33 1032 0.05 36 0.01
arduino:renesas_uno:unor4wifi 1048 0.4 36 0.11
arduino:sam:arduino_due_x_dbg 1592 0.3 N/A N/A
arduino:samd:mkrzero 1056 0.4 36 0.11
Click for full report CSV
Board,examples/Arduino_Debug_Basic<br>flash,%,examples/Arduino_Debug_Basic<br>RAM for global variables,%,examples/Arduino_Debug_Advance<br>flash,%,examples/Arduino_Debug_Advance<br>RAM for global variables,%
arduino:avr:leonardo,1180,4.12,510,19.92,1178,4.11,510,19.92
arduino:avr:mega,1166,0.46,508,6.2,1166,0.46,508,6.2
arduino:avr:nano,1162,3.78,508,24.8,1160,3.78,508,24.8
arduino:esp32:nano_nora,1128,0.04,32,0.01,,,,
arduino:mbed_giga:giga,984,0.05,32,0.01,,,,
arduino:mbed_nano:nano33ble,984,0.1,32,0.01,,,,
arduino:mbed_nano:nanorp2040connect,1041,0.01,40,0.01,,,,
arduino:mbed_nicla:nicla_vision,984,0.05,32,0.01,,,,
arduino:mbed_opta:opta,984,0.05,40,0.01,,,,
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,,,,
arduino:mbed_portenta:envie_m7:target_core=cm4,N/A,N/A,N/A,N/A,,,,
arduino:megaavr:nona4809,1167,2.37,32,0.52,1165,2.37,32,0.52
arduino:renesas_portenta:portenta_c33,1032,0.05,36,0.01,,,,
arduino:renesas_uno:unor4wifi,1048,0.4,36,0.11,,,,
arduino:sam:arduino_due_x_dbg,1592,0.3,N/A,N/A,,,,
arduino:samd:mkrzero,1056,0.4,36,0.11,,,,

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants