simavr icon indicating copy to clipboard operation
simavr copied to clipboard

Unable to reproduce tests/atmega88_example.axf results

Open jimustafa opened this issue 2 years ago • 3 comments

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.

jimustafa avatar Apr 14 '22 07:04 jimustafa

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 avatar Apr 20 '22 15:04 gatk555

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

gatk555 avatar Apr 20 '22 21:04 gatk555

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.

jimustafa avatar Apr 21 '22 06:04 jimustafa