diff --git a/avr/usbload/command.c b/avr/usbload/command.c index e991c72..811f4c1 100644 --- a/avr/usbload/command.c +++ b/avr/usbload/command.c @@ -97,6 +97,7 @@ void boot_startup_rom(uint16_t init_delay) info_P(PSTR("Fetch loader rom\n")); system_set_bus_avr(); + snes_irq_lo(); system_snes_irq_off(); system_set_rom_lorom(); @@ -124,10 +125,18 @@ void boot_startup_rom(uint16_t init_delay) //snes_hirom(); //snes_wr_disable(); - system_set_bus_snes(); + //system_set_bus_snes(); + //system_set_rom_hirom(); + //system_set_wr_disable(); + //system_snes_irq_off(); + + snes_irq_lo(); + system_snes_irq_off(); system_set_rom_hirom(); system_set_wr_disable(); - system_snes_irq_off(); + system_set_bus_snes(); + + system_send_snes_reset(); _delay_ms(init_delay); } diff --git a/avr/usbload/shell.c b/avr/usbload/shell.c index 2be38a8..7738bc7 100644 --- a/avr/usbload/shell.c +++ b/avr/usbload/shell.c @@ -42,6 +42,7 @@ #include "system.h" +extern system_t system; uint8_t command_buf[RECEIVE_BUF_LEN]; @@ -181,10 +182,13 @@ ISR(USART0_RX_vect) // Interrupt for UART Byte received UCSR0B |= (1<