33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
Journal USB Host
|
|
|
|
6 juin 2025
|
|
|
|
On arrive à activer les logs, mais avec 2 manipulations :
|
|
|
|
tasks.json
|
|
----------
|
|
|
|
"command": "cd build; cmake ../ -DCMAKE_BUILD_TYPE=Debug -DLOG=2; make Flash",
|
|
|
|
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake
|
|
index 1eab95304..278e7e152 100644
|
|
--- a/hw/bsp/rp2040/family.cmake
|
|
+++ b/hw/bsp/rp2040/family.cmake
|
|
@@ -49,13 +49,13 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
|
|
set(TINYUSB_DEBUG_LEVEL 0)
|
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
message("Compiling TinyUSB with CFG_TUSB_DEBUG=1")
|
|
- set(TINYUSB_DEBUG_LEVEL 1)
|
|
+ set(TINYUSB_DEBUG_LEVEL 2)
|
|
endif()
|
|
|
|
target_compile_definitions(tinyusb_common_base INTERFACE
|
|
CFG_TUSB_MCU=OPT_MCU_RP2040
|
|
CFG_TUSB_OS=OPT_OS_PICO
|
|
- #CFG_TUSB_DEBUG=${TINYUSB_DEBUG_LEVEL}
|
|
+ CFG_TUSB_DEBUG=${TINYUSB_DEBUG_LEVEL}
|
|
)
|
|
|
|
#------------------------------------
|
|
|