dxxb / sim-arduboy

Arduboy board implementation using simavr
GNU General Public License v3.0
22 stars 8 forks source link

Game Ardynia do not start #19

Open dlancer opened 5 years ago

dlancer commented 5 years ago

Game Ardynia do not start: https://github.com/city41/ardynia

  1. Just black screen and nothing in the logs with current simavr-arduboy build.
  2. With simavr updated to the latest and your spi related patch:
    Keymap: 1073741906,1073741905,1073741904,1073741903,122,120
    SSD1306: 37uS is 592 cycles for your AVR
    SSD1306: 1uS is 16 cycles for your AVR
    CORE: *** Invalid write address PC=6b24 SP=0afb O=93c0 Address 18c6=ff out of ram
    avr_sadly_crashed
    avr_gdb_init listening on port 1234

Game works on real hardware.

dxxb commented 5 years ago

CORE: *** Invalid write address PC=6b24 SP=0afb O=93c0 Address 18c6=ff out of ram avr_sadly_crashed avr_gdb_init listening on port 1234

Address 0x18c6 seems to be indeed outside the RAM address space. This could be a bug in the game that shows up here because the hardware ignored the out of bounds write or it could be something else.

avr_gdb_init listening on port 1234

Attaching GDB and debugging where in the game this occurs may shed some light on the issue.