-
Notifications
You must be signed in to change notification settings - Fork 7.8k
feat(board): expose logging subsystem arduino IDE #11897
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
feat(board): expose logging subsystem arduino IDE #11897
Conversation
👋 Hello guppy0130, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
* introduce `Logging Subsystem` option in arduino IDE * introduces `arduino` and `esp_idf` options * `esp_idf` option sets the `build.log_subsystem` variable to `-DUSE_ESP_IDF_LOG`, which is passed into `build.extra_flags` * `arduino` option is an empty str and therefore no new flags are added to `build.extra_flags` * cannot use `build.defines` as that conflicts with the PSRAM `-D` flag?
154e662 to
c21d161
Compare
|
Anyone can do this at any time by adding |
Oh, didn't realize this; tried this out and works as expected. Don't really mind if this is closed then. Will note that the change introduced in the PR may make it easier/more obvious for end users though? Happy to amend this to a docs update if that's desirable. What makes the current set of options valid and this one less so? Or is it the overhead of tracking/maintaining another option (totally understandable)? |
|
The |
Description of Change
Logging Subsystemoption in arduino IDEarduinoandesp_idfoptionsesp_idfoption sets thebuild.log_subsystemvariable to-DUSE_ESP_IDF_LOG, which is passed intobuild.extra_flagsarduinooption is an empty str and therefore no new flags are added tobuild.extra_flagsbuild.definesas that conflicts with the PSRAM-Dflag?note: this only adds it for XIAO ESP32S3; I can add it to the rest of the boards if that's desirable, but hoping y'all might have some automation for that.
Test Scenarios
Hardware:
FQBN: espressif:esp32:XIAO_ESP32S3:DebugLevel=debug,PSRAM=opi,LoggingSubsystem=ESP_IDFSoftware: whatever is pulled in by current
mainExample sketch:
Without this change,
ESP_LOGDonly goes to serial? with this change,sysloggeris used correctly.Related links
#4845 introduced
USE_ESP_IDF_LOG