From 84629d5aae867fb6fa5bb404dd5f796400ec1a99 Mon Sep 17 00:00:00 2001 From: Staacks Date: Sat, 14 Jan 2023 17:21:11 +0100 Subject: [PATCH] Fix Interceptor not working after power cycle on some outlier PCBs. Manufacturing tolerances can lead to edge cases in which the olscillator takes to long to settle, which leads to the Interceptor working after the initial firmware flash, but stopping to work when it is disconnected and reconnected again. This change simply allows for more time for the crystal to settle, fixing most of these outlier boards. --- firmware/CMakeLists.txt | 2 ++ firmware/main.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/CMakeLists.txt b/firmware/CMakeLists.txt index e4c4f5c..9fc0976 100644 --- a/firmware/CMakeLists.txt +++ b/firmware/CMakeLists.txt @@ -23,6 +23,8 @@ target_link_libraries(gb_interceptor PUBLIC pico_stdlib hardware_pio pico_multic target_include_directories(gb_interceptor PUBLIC ${CMAKE_CURRENT_LIST_DIR}) +target_compile_definitions(gb_interceptor PUBLIC PICO_XOSC_STARTUP_DELAY_MULTIPLIER=64) + pico_add_extra_outputs(gb_interceptor) pico_enable_stdio_usb(gb_interceptor 1) diff --git a/firmware/main.h b/firmware/main.h index cf8224e..3f7e6a0 100644 --- a/firmware/main.h +++ b/firmware/main.h @@ -6,6 +6,6 @@ #define LED_SWITCH_PIN 1 #define LED_PIN_MASK 0x02 -#define VERSION "1.0.3" +#define VERSION "1.0.4-alpha1" #endif \ No newline at end of file