Merge pull request #92 from cjkas/chore/debug-serial-921600

chore: run the debug build's serial port at 921600
This commit is contained in:
cjkas 2026-10-21 21:47:13 +02:00 • committed by GitHub
commit 539a49eb77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -79,6 +79,10 @@ build_flags =
${dualcore.build_flags} ${dualcore.build_flags}
-DCORE_DEBUG_LEVEL=3 -DCORE_DEBUG_LEVEL=3
--param=large-unit-insns=1000 --param=large-unit-insns=1000
-DSERIAL_BAUD=921600
; The info logs hold up the task that logs for ~1ms a line at 921600, ~9ms at
; 115200. The ROM's boot banner stays at 115200, so it shows as garbage.
monitor_speed = 921600
[env:esp32s3] [env:esp32s3]
extends = esp32 extends = esp32

View file

@ -22,6 +22,10 @@
static const char *TAG = "Main"; static const char *TAG = "Main";
#define LOOP_SLOW_MS 100 #define LOOP_SLOW_MS 100
// platformio.ini can set its own, along with a matching monitor_speed.
#ifndef SERIAL_BAUD
#define SERIAL_BAUD 115200
#endif
// How long an updated firmware has to run, and then have the network up, before // How long an updated firmware has to run, and then have the network up, before
// it is kept. A reset before then rolls back to the previous firmware. // it is kept. A reset before then rolls back to the previous firmware.
#define OTA_PROVEN_MS 60000 #define OTA_PROVEN_MS 60000
@ -67,7 +71,7 @@ void listDir(const char *dirname, uint8_t levels) {
} }
void setup() { void setup() {
Serial.begin(115200); Serial.begin(SERIAL_BAUD);
ESP_LOGI(TAG, "Startup/Boot...."); ESP_LOGI(TAG, "Startup/Boot....");
esp_core_dump_summary_t summary; esp_core_dump_summary_t summary;
if (esp_core_dump_get_summary(&summary) == ESP_OK) { if (esp_core_dump_get_summary(&summary) == ESP_OK) {