Skip to content

Commit

Permalink
Never force offline at start-up.
Browse files Browse the repository at this point in the history
Offline mode can interfere with JTAG programming.
  • Loading branch information
mossmann committed Oct 7, 2023
1 parent 515e9c0 commit 3500808
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions firmware/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3500808

Please sign in to comment.