chore(sd): drop Spike 3 CMD59 diagnostic logging
The per-command sdmmc/sdspi DEBUG logs only existed to diagnose the CMD59 init failure, now resolved (verified 2026-07-11). Remove the build-time log ceiling and the runtime esp_log_level_set block.
This commit is contained in:
@@ -26,12 +26,6 @@ CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=4096
|
||||
# `std::thread::Builder::new().stack_size(XXX)` for spawning
|
||||
CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT=4096
|
||||
|
||||
# Raise the compile-time log ceiling so the sdmmc/sdspi drivers' per-command
|
||||
# DEBUG logs (the raw R1 response bytes) are built in. Runtime level stays INFO
|
||||
# by default; the SD spike bumps just the sdmmc/sdspi tags to DEBUG so we can see
|
||||
# exactly what each init command returns. (Diagnostic for Spike 3 init failures.)
|
||||
CONFIG_LOG_MAXIMUM_LEVEL_DEBUG=y
|
||||
|
||||
# FatFS long filenames (Spike 3 — SD). Default is 8.3-only, which rejects the
|
||||
# persistence module's atomic-save temp name (`notes.md.tmp` has two dots).
|
||||
# LFN on the heap keeps the working buffer off the (small) task stack.
|
||||
|
||||
@@ -81,13 +81,6 @@ fn main() -> Result<()> {
|
||||
|
||||
log::info!("Typoena — Spike 3 (SD/FAT on shared SPI2), {BUILD_TAG}");
|
||||
|
||||
// Diagnostic: surface the sdmmc/sdspi drivers' per-command DEBUG logs (the
|
||||
// raw R1 response bytes) so an init failure shows *which* command the card
|
||||
// rejects and with what response — not just the final propagated error.
|
||||
for tag in [c"sdmmc_sd", c"sdmmc_cmd", c"sdmmc_init", c"sdspi_transaction", c"sdspi_host"] {
|
||||
unsafe { sys::esp_log_level_set(tag.as_ptr(), sys::esp_log_level_t_ESP_LOG_DEBUG) };
|
||||
}
|
||||
|
||||
match run() {
|
||||
Ok(()) => {
|
||||
log::info!("✅ Spike 3 complete — mount + atomic write/fsync/rename/read-back on shared bus")
|
||||
|
||||
Reference in New Issue
Block a user