Problem on the memory window

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

Hi everybody,

 

I'm new in this forum and in using atmel studio.

I'm using atmel studio 6.2.1563-Service Pack 2, with Arduino DUE and the SAM ICE debugger with the olimex adapter for arduino; for my project I need to store values in the internal flash memory of the microcontroller, so looking on atmel website I found the "NVM access driver" which seems to fit my requirements.

I copied the program found in the link below:

 

http://asf.atmel.com/docs/3.17.0...

 

When I debug the program, at first I write the values at a certain address, for example 0x000C0100, then I read the values at this address and everything works, because in the array (in the example on the link above is data_read[8]) where the data are read I can see the values written at 0x000C0100.

The problem is that in the memory window I cannot see the variation that I made, for example before the writing the values of the data at 0x000C0100 are all F (so I think that the memory is erased) but also after the writing all the values are still F, even if when I read using the nvm_read I see the right values in data_read[8], using the watch window (in the example 0xAA, 0xBB, 0xCC, 0xDD, 0xEE).

 

So can anyone help me? Is it a problem of atmel studio or of my device? Is there some trick to fix the problem?

 

 

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

Hi,

 

go to Project Properties->Tool and disable the "Cache all flash memory except"option or specify the memory region that should not be cached.

That should work.

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

Hi,

 

Thank you very much now it works!!