buserror / simavr

simavr is a lean, mean and hackable AVR simulator for linux & OSX
GNU General Public License v3.0
1.56k stars 365 forks source link

Unable to reproduce tests/atmega88_example.axf results #486

Open jimustafa opened 2 years ago

jimustafa commented 2 years ago

Running

./simavr/run_avr tests/atmega88_example.axf

yields

Loaded 1722 .text at address 0x0
Loaded 114 .data
Loaded 4 .eeprom
Read from eeprom 0xdeadbeef -- should be 0xdeadbeef..
Read from eeprom 0xcafef00d -- should be 0xcafef00d..

which is inconsistent with the expected output documented in the README.

All the tests are passing...

I am on CentOS 8 and using avr-gcc installed through arduino-cli.

gatk555 commented 2 years ago

The README does not say that the program you build will produce that output, just "A program running with these instructions ... will display". Evidently an older version of run_avr with a higher logging level was used. Indeed, you can get closer by adding several "-v" options to the command.

So there seems to be no real issue here.

gatk555 commented 2 years ago

It has been logged before: #168 and #445. The main part of #168 (empty VCD file) is fixed, probably by #440.

jimustafa commented 2 years ago

Thanks for the references; yes, this issue (if even an issue) seems to be a duplicate.

So, this is just a case of the output shown in the README being out of date with the state of the main branch.