Simulator factoid

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

To get the simulator to work, I have to set the Properties >> Tool >> Programming settings to "Erase Entire Chip".  If it is set to "Skip programming", it seems to run a garbage program.

 

I see this on versions 6.2 and 7 beta.

 

Maybe if I ran a simulated bootloader to program the simulated flash in the simulator before running the simulator, it might work.wink

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are the default project value 'Skip Programming'? That sounds mighty strange..

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

Are the default project value 'Skip Programming'? That sounds mighty strange..

I'm a mighty strange programmer.  I always set it to "Skip Programming".   I use a bootloader and when debugging with the real hardware I don't want the debugger to wipe out the bootloader.

 

I rarely use the Studio simulator.  I thought the simulator would be an easy way to see if Studio 7 would run on a Windows 8 installation I will be upgrading to Windows 10.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah, you got me nervous :) 

 

Yes, if you run with skip programming on the simulator, then it is as you are running with uninitialized flash, just that I don't think the simulator necessarily writes all 'cells' to 0xFF as the chip does... So it will be OS level uninitialized.

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

... just that I don't think the simulator necessarily writes all 'cells' to 0xFF as the chip does... So it will be OS level uninitialized.

Yes, it does. A part of the initial sequence when loading a simulator dll is to write all flash to 0xFF. Then it's up to the Tool (Atmel Studio) to program the flash.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I stand corrected :) 

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

I stand corrected :) 

Got to take every chance I get. They don't come around very often ;-)