From 3500808181a8e26bbcb45885ccf094cd5f33f155 Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Sat, 7 Oct 2023 00:40:20 -0400 Subject: [PATCH] Never force offline at start-up. Offline mode can interfere with JTAG programming. --- firmware/src/main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/firmware/src/main.c b/firmware/src/main.c index ceef060..225999d 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -58,13 +58,7 @@ int main(void) // Trigger an FPGA reconfiguration; so the FPGA automatically // configures itself from its SPI ROM on reset. This effectively // makes the RESET button reset both the uC and the FPGA. - if (gpio_get_pin_level(PROGRAM_BUTTON) == true) { - trigger_fpga_reconfiguration(); - } else { - // If PROGRAM button is held down at start-up, halt the FPGA - // instead of configuring it. - force_fpga_offline(); - } + trigger_fpga_reconfiguration(); while (1) { tud_task(); // tinyusb device task