Opened 6 weeks ago

Closed 10 days ago

#38 closed task (fixed)

Preserve a content of flash memory

Reported by: dsl Owned by: dsl
Priority: major Milestone: MCUSim-0.2
Component: avr Keywords: planned-in-0.2
Cc:

Description

Flash memory of the AVR microcontrollers is a non-volatile memory and it means
that its content is preserved until an MCU is re-programmed (or flash memory
is overwritten in any other way, e.g. via bootloader section).

However, MCUSim starts each simulation from scratch with an empty flash memory
and populates it from an Intel HEX file described by the "firmware_file" option
in the configuration file.

There is another "reset_flash" option which is supposed to tell the simulation
which file with the content of the flash memory should have a priority when
starting a new simulation.

It means that we may have a situation when there are two files to populate flash
memory from:

  • File described by the "firmware_file" option;
  • Utility file ".mcusim.flash" left from the previous simulation.

"reset_flash no" tells simulator to try loading files in this order:

  1. Utility file ".mcusim.flash" left from the previous simulation;
  2. File described by the "firmware_file" option.

"reset_flash yes" tells simulation to try loading a firmware file only:

  1. File described by the "firmware_file" option.

Change History (2)

comment:1 Changed 6 weeks ago by dsl

Status: assignedaccepted

comment:2 Changed 10 days ago by dsl

Milestone: Work in ProgressMCUSim-0.2
Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.