diff --git a/lib/BlueSCSI_platform_RP2040/BlueSCSI_platform.cpp b/lib/BlueSCSI_platform_RP2040/BlueSCSI_platform.cpp index 0d9dae92..2615b491 100644 --- a/lib/BlueSCSI_platform_RP2040/BlueSCSI_platform.cpp +++ b/lib/BlueSCSI_platform_RP2040/BlueSCSI_platform.cpp @@ -22,7 +22,7 @@ #endif #ifndef __MBED__ -# include +#include # include #else # include @@ -126,6 +126,9 @@ void platform_init() { // Make sure second core is stopped multicore_reset_core1(); +#ifndef __MBED__ + Serial.begin(115200); +#endif // __MBED__ // Default debug logging to disabled g_log_debug = false; @@ -290,9 +293,6 @@ void platform_late_init() gpio_conf(scsi_pins.IN_RST, GPIO_FUNC_SIO, true, false, false, true, false); -#ifndef __MBED__ - Serial.begin(); -#endif // __MBED__ #ifdef ENABLE_AUDIO_OUTPUT // one-time control setup for DMA channels and second core diff --git a/platformio.ini b/platformio.ini index 85619e4e..61de4088 100644 --- a/platformio.ini +++ b/platformio.ini @@ -45,6 +45,8 @@ build_flags = -DPICO_DEFAULT_I2C_SDA_PIN=16 -DPICO_DEFAULT_I2C_SCL_PIN=17 -DBLUESCSI_NETWORK=1 +; Arduino's default USB task/irq is conflicting with WiFi somehow + -DUSE_TINYUSB ; build flags mirroring the framework-arduinopico#v4.1.1-DaynaPORT static library build -DPICO_CYW43_ARCH_POLL=1 -DCYW43_LWIP=0