I have configured uVision 4 to simulate external SPI E2 chips and am trying to determine a good way to save the E2 contents at the end of simulation. The E2 simulation script I am using is based off the Keil examples though it has been modified to support multiple chips.
Restoring it at the start of the next simulation session is simple:
LOAD Simulation\saveFile.hex
Saving manually can be done either by typing the command or making a button is a possibility:
SAVE Simulation\saveFile.hex BASE_Addr2,(BASE_Addr2+E2Size2)
I could have it save the E2 memory to a file at the end of every E2 write command, but was preferring it to be automatic when terminating the simulation session.
Is there any way to automatically call a simulation command / script at the end of the simulation session?
Thanks, Chad